Fix "quit and shutdown daemon" option

This commit is contained in:
Andrew Resch 2009-02-21 14:03:28 +00:00
parent 0e47cfd49e
commit 7e7944a085
1 changed files with 3 additions and 2 deletions

View File

@ -248,8 +248,9 @@ class MenuBar(component.Component):
def on_menuitem_quitdaemon_activate(self, data=None):
log.debug("on_menuitem_quitdaemon_activate")
# Tell the core to shutdown
client.daemon.shutdown()
def on_shutdown(result):
self.window.quit()
client.daemon.shutdown().addCallback(on_shutdown)
def on_menuitem_quit_activate(self, data=None):
log.debug("on_menuitem_quit_activate")