Tweak 'quit and shutdown daemon'.
This commit is contained in:
parent
85e6c4c76d
commit
31ae3488ba
|
@ -105,7 +105,6 @@ class MainWindow(component.Component):
|
||||||
|
|
||||||
def quit(self):
|
def quit(self):
|
||||||
del self.config
|
del self.config
|
||||||
self.hide()
|
|
||||||
gtk.main_quit()
|
gtk.main_quit()
|
||||||
|
|
||||||
def load_window_state(self):
|
def load_window_state(self):
|
||||||
|
|
|
@ -156,8 +156,8 @@ class MenuBar(component.Component):
|
||||||
def on_menuitem_quitdaemon_activate(self, data=None):
|
def on_menuitem_quitdaemon_activate(self, data=None):
|
||||||
log.debug("on_menuitem_quitdaemon_activate")
|
log.debug("on_menuitem_quitdaemon_activate")
|
||||||
# Tell the core to shutdown
|
# Tell the core to shutdown
|
||||||
self.window.quit()
|
|
||||||
client.shutdown()
|
client.shutdown()
|
||||||
|
self.window.quit()
|
||||||
|
|
||||||
def on_menuitem_quit_activate(self, data=None):
|
def on_menuitem_quit_activate(self, data=None):
|
||||||
log.debug("on_menuitem_quit_activate")
|
log.debug("on_menuitem_quit_activate")
|
||||||
|
|
Loading…
Reference in New Issue