summaryrefslogtreecommitdiff
path: root/src/leap/baseapp
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-11-12 23:03:12 +0900
committerkali <kali@leap.se>2012-11-12 23:03:12 +0900
commit72f3ef94f0d7deffa9adfba6bde57ae3d9c8d165 (patch)
treef80f8b646adc25a96cd5308eeaaf6cfe75f6f5b8 /src/leap/baseapp
parent6dac344ee1826f9413a40c7783517bc640f826ca (diff)
connect wizard cancel button with shutdown
Diffstat (limited to 'src/leap/baseapp')
-rw-r--r--src/leap/baseapp/mainwindow.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/leap/baseapp/mainwindow.py b/src/leap/baseapp/mainwindow.py
index bd29e608..918f1568 100644
--- a/src/leap/baseapp/mainwindow.py
+++ b/src/leap/baseapp/mainwindow.py
@@ -145,8 +145,16 @@ class LeapWindow(QtGui.QMainWindow,
parent=self,
eip_username=self.eip_username,
start_eipconnection_signal=self.start_eipconnection,
- eip_statuschange_signal=self.eipStatusChange)
+ eip_statuschange_signal=self.eipStatusChange,
+ quitcallback=self.onWizardCancel)
wizard.show()
+ def onWizardCancel(self):
+ if not self.wizard_done:
+ logger.debug(
+ 'clicked on Cancel during first '
+ 'run wizard. shutting down')
+ self.cleanupAndQuit()
+
def runchecks_and_eipconnect(self):
self.initchecks.begin()