#2169: Add Torrent Dialog's ' Download Location' not set correctly when
directory
typed into Other->Location field
--------------------------+-------------------------------------------------
Reporter: beaux_monde | Owner: Cas
Type: bug | Status: reopened
Priority: minor | Milestone: 1.3.6
Component: other | Version: 1.3.5
Resolution: | Keywords:
--------------------------+-------------------------------------------------
Changes (by Cas):
* status: closed => reopened
* component: gtkui => other
* resolution: fixed =>
Comment:
I had a feeling from the last debug logs that it was GTK issue and it's
strange that I did not see this in F17 when testing previously however
updated it and now see the issue along with a temporary workaround:
{{{
#!diff
diff --git a/deluge/ui/gtkui/addtorrentdialog.py
b/deluge/ui/gtkui/addtorrentdialog.py
index a26acf0..f4077c2 100644
--- a/deluge/ui/gtkui/addtorrentdialog.py
+++ b/deluge/ui/gtkui/addtorrentdialog.py
@@ -147,6 +147,12 @@ def __init__(self):
self.core_config = {}
self.glade.get_widget("notebook1").connect("switch-page",
self._on_switch_page)
+ self.glade.get_widget("button_location").connect("current-folder-
changed", self._on_folder_selected)
+ self.on_folder_selected_path = ""
+
+ def _on_folder_selected(self, widget):
+ log.debug("Selected folder path: %s", widget.get_filename())
+ self.on_folder_selected_path = widget.get_filename()
def start(self):
self.update_core_config()
@@ -405,7 +411,9 @@ def save_torrent_options(self, row=None):
if client.is_localhost():
options["download_location"] = \
- self.glade.get_widget("button_location").get_filename()
+ self.on_folder_selected_path
+ log.debug("Dl folder: %s",
self.glade.get_widget("button_location").get_filename())
+ log.debug("Dl signal: %s", self.on_folder_selected_path)
else:
options["download_location"] = \
self.glade.get_widget("entry_download_path").get_text()
}}}
--
Ticket URL: <http://dev.deluge-torrent.org/ticket/2169#comment:40>
Deluge <http://deluge-torrent.org/>
Deluge project
--
You received this message because you are subscribed to the Google Groups
"Deluge Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/deluge-dev?hl=en.