diff options
author | kali <kali@leap.se> | 2012-11-28 02:43:25 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2012-11-28 03:00:27 +0900 |
commit | a3ce61ea54b0b0f5c1ecd5904379e27cfec885b5 (patch) | |
tree | 27e594233eff749f928cb503e3d4a9920aa08062 /src/leap/baseapp/mainwindow.py | |
parent | c7dec38062e433cd1f098b6f1457acc87b4e6aaf (diff) |
call shutdown signal from sigint_handler
Diffstat (limited to 'src/leap/baseapp/mainwindow.py')
-rw-r--r-- | src/leap/baseapp/mainwindow.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/baseapp/mainwindow.py b/src/leap/baseapp/mainwindow.py index 85185ca6..8d61bf5c 100644 --- a/src/leap/baseapp/mainwindow.py +++ b/src/leap/baseapp/mainwindow.py @@ -95,6 +95,8 @@ class LeapWindow(QtGui.QMainWindow, lambda: self.start_or_stopVPN()) self.start_eipconnection.connect( lambda: self.start_or_stopVPN()) + self.shutdownSignal.connect( + self.cleanupAndQuit) # status change. # TODO unify @@ -102,7 +104,6 @@ class LeapWindow(QtGui.QMainWindow, lambda status: self.onOpenVPNStatusChange(status)) self.eipStatusChange.connect( lambda newstatus: self.onEIPConnStatusChange(newstatus)) - # can I connect 2 signals? self.eipStatusChange.connect( lambda newstatus: self.toggleEIPAct()) |