Author: andar
Revision: 5464
Log:
Likewise for Windows close/shutdown events
Diff:
Modified: trunk/deluge/ui/gtkui/gtkui.py
===================================================================
--- trunk/deluge/ui/gtkui/gtkui.py 2009-07-06 06:50:40 UTC (rev 5463)
+++ trunk/deluge/ui/gtkui/gtkui.py 2009-07-06 06:51:54 UTC (rev 5464)
@@ -152,8 +152,8 @@
from win32con import CTRL_SHUTDOWN_EVENT
def win_handler(ctrl_type):
log.debug("ctrl_type: %s", ctrl_type)
- if ctrl_type == CTRL_CLOSE_EVENT or ctrl_type ==
CTRL_SHUTDOWN_EVENT:
- self.shutdown()
+ if ctrl_type in (CTRL_CLOSE_EVENT, CTRL_SHUTDOWN_EVENT):
+ gtk.main_quit()
return 1
SetConsoleCtrlHandler(win_handler)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---