summaryrefslogtreecommitdiff
path: root/src/leap/baseapp/mainwindow.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-10-26 05:16:44 +0900
committerkali <kali@leap.se>2012-10-26 05:16:44 +0900
commit0a8a34879a701a2d045f628403c6a0f8be21dc82 (patch)
tree49728df8753cad8c135bb261209034803073f7de /src/leap/baseapp/mainwindow.py
parentb66f946c9e7bbdf4bfb7ceb7ffcf340257b2165e (diff)
stop eip connection when first run wizard started
Closes #716
Diffstat (limited to 'src/leap/baseapp/mainwindow.py')
-rw-r--r--src/leap/baseapp/mainwindow.py23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/leap/baseapp/mainwindow.py b/src/leap/baseapp/mainwindow.py
index 38fa4a45..8f359dbf 100644
--- a/src/leap/baseapp/mainwindow.py
+++ b/src/leap/baseapp/mainwindow.py
@@ -125,18 +125,23 @@ class LeapWindow(QtGui.QMainWindow,
# launch wizard if needed
if need_wizard:
- from leap.gui.firstrunwizard import FirstRunWizard
- wizard = FirstRunWizard(
- self.conductor,
- parent=self,
- eip_username=self.eip_username,
- start_eipconnection_signal=self.start_eipconnection,
- eip_statuschange_signal=self.eipStatusChange)
- wizard.show()
+ self.launch_first_run_wizard()
else: # no wizard needed
logger.debug('running first run wizard')
self.initReady.emit()
- return
+
+ def launch_first_run_wizard(self):
+ """
+ launches wizard and blocks
+ """
+ from leap.gui.firstrunwizard import FirstRunWizard
+ wizard = FirstRunWizard(
+ self.conductor,
+ parent=self,
+ eip_username=self.eip_username,
+ start_eipconnection_signal=self.start_eipconnection,
+ eip_statuschange_signal=self.eipStatusChange)
+ wizard.show()
def runchecks_and_eipconnect(self):
self.initchecks.begin()