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 a1949bc020
commit debae00246

View File

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