From 31ae3488bac6a1ef82be3d5bfe91e351d0d2d5c7 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Tue, 12 Feb 2008 21:26:01 +0000 Subject: [PATCH] Tweak 'quit and shutdown daemon'. --- deluge/ui/gtkui/mainwindow.py | 1 - deluge/ui/gtkui/menubar.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/deluge/ui/gtkui/mainwindow.py b/deluge/ui/gtkui/mainwindow.py index b4e6e2be6..bef19bb03 100644 --- a/deluge/ui/gtkui/mainwindow.py +++ b/deluge/ui/gtkui/mainwindow.py @@ -105,7 +105,6 @@ class MainWindow(component.Component): def quit(self): del self.config - self.hide() gtk.main_quit() def load_window_state(self): diff --git a/deluge/ui/gtkui/menubar.py b/deluge/ui/gtkui/menubar.py index fa56070d4..5dc72af4d 100644 --- a/deluge/ui/gtkui/menubar.py +++ b/deluge/ui/gtkui/menubar.py @@ -156,8 +156,8 @@ class MenuBar(component.Component): def on_menuitem_quitdaemon_activate(self, data=None): log.debug("on_menuitem_quitdaemon_activate") # Tell the core to shutdown - self.window.quit() client.shutdown() + self.window.quit() def on_menuitem_quit_activate(self, data=None): log.debug("on_menuitem_quit_activate")