summaryrefslogtreecommitdiff
path: root/src/leap/baseapp/mainwindow.py
diff options
context:
space:
mode:
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()