From 0a9fe242e762a3da9989865ed649ac9fb43aa9e9 Mon Sep 17 00:00:00 2001 From: Chase Sterling Date: Fri, 2 Nov 2012 19:25:24 -0400 Subject: [PATCH] Move sensitivity check to a more appropriate place for move completed on add torrent dialog. --- deluge/ui/gtkui/addtorrentdialog.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deluge/ui/gtkui/addtorrentdialog.py b/deluge/ui/gtkui/addtorrentdialog.py index f63246b67..ce89e8b7a 100644 --- a/deluge/ui/gtkui/addtorrentdialog.py +++ b/deluge/ui/gtkui/addtorrentdialog.py @@ -169,8 +169,6 @@ class AddTorrentDialog(component.Component): self.glade.get_widget("button_move_completed_location").hide() self.glade.get_widget("entry_move_completed_path").show() - self._on_chk_move_completed_toggled(self.glade.get_widget("chk_move_completed")) - self.dialog.set_transient_for(component.get("MainWindow").window) self.dialog.present() if focus: @@ -401,6 +399,7 @@ class AddTorrentDialog(component.Component): options["prioritize_first_last_pieces"]) self.glade.get_widget("chk_move_completed").set_active( options["move_completed"]) + self._on_chk_move_completed_toggled(self.glade.get_widget("chk_move_completed")) def save_torrent_options(self, row=None): # Keeps the torrent options dictionary up-to-date with what the user has