Fix preferences dialog not opening with main window on Windows
This commit is contained in:
parent
e10cfb8f8c
commit
eb773bba2c
|
@ -55,6 +55,7 @@ class Preferences(component.Component):
|
||||||
pkg_resources.resource_filename("deluge.ui.gtkui",
|
pkg_resources.resource_filename("deluge.ui.gtkui",
|
||||||
"glade/preferences_dialog.glade"))
|
"glade/preferences_dialog.glade"))
|
||||||
self.pref_dialog = self.glade.get_widget("pref_dialog")
|
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.pref_dialog.set_icon(common.get_deluge_icon())
|
||||||
self.treeview = self.glade.get_widget("treeview")
|
self.treeview = self.glade.get_widget("treeview")
|
||||||
self.notebook = self.glade.get_widget("notebook")
|
self.notebook = self.glade.get_widget("notebook")
|
||||||
|
|
Loading…
Reference in New Issue