From 05b105276e5fa5eb5fcb97212b0132f46592bd8e Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Fri, 14 Sep 2007 19:26:29 +0000 Subject: [PATCH] tweak last --- src/interface.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/interface.py b/src/interface.py index f4e06e1b0..86def83f9 100644 --- a/src/interface.py +++ b/src/interface.py @@ -152,10 +152,14 @@ class DelugeGTK: else: from win32api import SetConsoleCtrlHandler from win32con import CTRL_CLOSE_EVENT + result = 0 def win_handler(self, ctrl_type): if ctrl_type == CTRL_CLOSE_EVENT: self.shutdown() + result = 1 SetConsoleCtrlHandler(win_handler) + return result + self.dht_timer = 0 self.dht_skip = False