1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-23 06:37:59 +01:00

Remove unneeded parameter from PreferencesDialog constructor.

This commit is contained in:
Dan O'Reilly
2009-02-03 19:38:07 -05:00
parent 11c1c48b92
commit 5a6bdbdef4
2 changed files with 2 additions and 3 deletions

View File

@@ -300,8 +300,7 @@ class appGui(object):
def settings_dialog(self, widget, event=None):
""" Displays a general settings dialog. """
if not self.pref:
self.pref = PreferencesDialog(self.wTree,
dbusmanager.get_dbus_ifaces())
self.pref = PreferencesDialog(self.wTree)
else:
self.pref.load_preferences_diag()
if self.pref.run() == 1:

View File

@@ -49,7 +49,7 @@ def setup_dbus():
class PreferencesDialog(object):
""" Class for handling the wicd preferences dialog window. """
def __init__(self, wTree, dbus):
def __init__(self, wTree):
setup_dbus()
self.wTree = wTree
self.prep_settings_diag()