Fix showing the preferences dialog when not connected to a daemon

This commit is contained in:
Andrew Resch 2009-02-26 03:42:14 +00:00
parent f61e86d7b3
commit cb78682415
1 changed files with 2 additions and 0 deletions

View File

@ -180,6 +180,8 @@ class Preferences(component.Component):
# This starts a series of client.core requests prior to showing the window # This starts a series of client.core requests prior to showing the window
client.core.get_config().addCallback(_on_get_config) client.core.get_config().addCallback(_on_get_config)
else:
self._show()
def _show(self): def _show(self):
if self.core_config != {} and self.core_config != None: if self.core_config != {} and self.core_config != None: