From debae00246d839d42193b354bd8171003a524d05 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Tue, 28 Feb 2012 22:44:52 +0000 Subject: [PATCH] Fix preferences dialog not opening with main window on Windows --- deluge/ui/gtkui/preferences.py | 1 + 1 file changed, 1 insertion(+) diff --git a/deluge/ui/gtkui/preferences.py b/deluge/ui/gtkui/preferences.py index 7ba931a92..34f8da6f0 100644 --- a/deluge/ui/gtkui/preferences.py +++ b/deluge/ui/gtkui/preferences.py @@ -68,6 +68,7 @@ class Preferences(component.Component): "deluge.ui.gtkui", os.path.join("glade", "preferences_dialog.ui") )) self.pref_dialog = self.builder.get_object("pref_dialog") + self.pref_dialog.set_transient_for(component.get("MainWindow").window) self.pref_dialog.set_icon(common.get_deluge_icon()) self.treeview = self.builder.get_object("treeview") self.notebook = self.builder.get_object("notebook")