Module: deluge Branch: 1.2-stable Commit: 4f134731df230a6e8e5be8ace56c92d578b23410
Author: John Garland <[email protected]> Date: Sun May 16 18:10:13 2010 +1000 Fix remote save path dialog not disappearing after creating a torrent --- deluge/ui/gtkui/createtorrentdialog.py | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/deluge/ui/gtkui/createtorrentdialog.py b/deluge/ui/gtkui/createtorrentdialog.py index dee4809..f8224a3 100644 --- a/deluge/ui/gtkui/createtorrentdialog.py +++ b/deluge/ui/gtkui/createtorrentdialog.py @@ -224,11 +224,14 @@ class CreateTorrentDialog: is_remote = self.files_treestore[0][1] == gtk.STOCK_NETWORK if is_remote: # This is a remote path - response = self.glade.get_widget("remote_save_dialog").run() + dialog = self.glade.get_widget("remote_save_dialog") + response = dialog.run() if response == gtk.RESPONSE_OK: result = self.glade.get_widget("entry_save_path").get_text() else: + dialog.hide() return + dialog.hide() else: # Setup the filechooserdialog chooser = gtk.FileChooserDialog(_("Save .torrent file"), @@ -340,7 +343,6 @@ class CreateTorrentDialog: trackers, add_to_session).addCallback(hide_progress) - chooser.destroy() self.dialog.destroy() def create_torrent(self, path, tracker, piece_length, progress, comment, target, -- You received this message because you are subscribed to the Google Groups "deluge-commit" 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-commit?hl=en.
