diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2013-02-20 19:27:16 +0000 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2013-02-21 16:23:59 +0000 |
commit | 61c125420bbfd229e41420c0cc246ee3283d8621 (patch) | |
tree | dd08cfda9bf690045150634340a4bb05a00f4817 | |
parent | 36a78d8f219ff257549e4ac90a40bb9ef9c201cd (diff) | |
download | deluge-61c125420bbfd229e41420c0cc246ee3283d8621.tar.gz deluge-61c125420bbfd229e41420c0cc246ee3283d8621.tar.bz2 deluge-61c125420bbfd229e41420c0cc246ee3283d8621.zip |
GTKUI: Autofill save path when creating torrent from remote path
-rw-r--r-- | deluge/ui/gtkui/createtorrentdialog.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/deluge/ui/gtkui/createtorrentdialog.py b/deluge/ui/gtkui/createtorrentdialog.py index 314dda176..3f022b402 100644 --- a/deluge/ui/gtkui/createtorrentdialog.py +++ b/deluge/ui/gtkui/createtorrentdialog.py @@ -229,9 +229,11 @@ class CreateTorrentDialog: if is_remote: # This is a remote path dialog = self.glade.get_widget("remote_save_dialog") + dialog_save_path = self.glade.get_widget("entry_save_path") + dialog_save_path.set_text(self.files_treestore[0][0].rstrip("\\/") + ".torrent") response = dialog.run() if response == gtk.RESPONSE_OK: - result = self.glade.get_widget("entry_save_path").get_text() + result = dialog_save_path.get_text() else: dialog.hide() return |