From eb773bba2c2d981978c5e232e9f6398c303657fc 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 02ec7d922..a76261aed 100644 --- a/deluge/ui/gtkui/preferences.py +++ b/deluge/ui/gtkui/preferences.py @@ -55,6 +55,7 @@ class Preferences(component.Component): pkg_resources.resource_filename("deluge.ui.gtkui", "glade/preferences_dialog.glade")) self.pref_dialog = self.glade.get_widget("pref_dialog") + self.pref_dialog.set_transient_for(component.get("MainWindow").window) self.pref_dialog.set_icon(common.get_deluge_icon()) self.treeview = self.glade.get_widget("treeview") self.notebook = self.glade.get_widget("notebook")