Fix preferences dialog not opening with main window on Windows

This commit is contained in:
Calum Lind 2012-02-28 22:44:52 +00:00
parent e10cfb8f8c
commit eb773bba2c
1 changed files with 1 additions and 0 deletions

View File

@ -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")