remove uneffective hide

This commit is contained in:
Marcos Pinto 2007-11-17 09:58:52 +00:00
parent de8b55c9ed
commit 94a159a66f
1 changed files with 0 additions and 4 deletions

View File

@ -154,7 +154,6 @@ class DelugeGTK:
result = 0 result = 0
def win_handler(self, ctrl_type): def win_handler(self, ctrl_type):
if ctrl_type == CTRL_CLOSE_EVENT: if ctrl_type == CTRL_CLOSE_EVENT:
self.window.hide()
self.shutdown() self.shutdown()
result = 1 result = 1
return result return result
@ -466,7 +465,6 @@ window, please enter your password"))
elif comingnext == "plugwinshow": elif comingnext == "plugwinshow":
self.show_plugin_dialog() self.show_plugin_dialog()
elif comingnext == "quitus": elif comingnext == "quitus":
self.window.hide()
self.shutdown() self.shutdown()
tray_lock.destroy() tray_lock.destroy()
@ -1647,13 +1645,11 @@ want to remove all seeding torrents?")):
def quit(self, widget=None): def quit(self, widget=None):
if self.window.get_property("visible"): if self.window.get_property("visible"):
self.window.hide()
self.shutdown() self.shutdown()
else: else:
if self.config.get("lock_tray"): if self.config.get("lock_tray"):
self.unlock_tray("quitus") self.unlock_tray("quitus")
else: else:
self.window.hide()
self.shutdown() self.shutdown()
def shutdown(self): def shutdown(self):