summaryrefslogtreecommitdiff
path: root/src/leap/gui
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@yahoo.com.ar>2013-06-18 13:03:10 -0300
committerIvan Alejandro <ivanalejandro0@yahoo.com.ar>2013-06-18 13:05:03 -0300
commit1d23bb2d8f5715031bc45f506ac32ce2afa5bfce (patch)
treeee465fcd4f77406c81e117cf2d9b455f46ee6fa0 /src/leap/gui
parent332f4fe1338b72eaa7bc2a2878ce30129004319e (diff)
Close the app on rejected wizard. Closes bug #2905
Diffstat (limited to 'src/leap/gui')
-rw-r--r--src/leap/gui/mainwindow.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/leap/gui/mainwindow.py b/src/leap/gui/mainwindow.py
index 51b96463..bf6aefe9 100644
--- a/src/leap/gui/mainwindow.py
+++ b/src/leap/gui/mainwindow.py
@@ -299,9 +299,12 @@ class MainWindow(QtGui.QMainWindow):
"""
if self._wizard is None:
self._wizard = Wizard(bypass_checks=self._bypass_checks)
- self._wizard.accepted.connect(self._finish_init)
+ self._wizard.accepted.connect(self._finish_init)
+
self.setVisible(False)
self._wizard.exec_()
+ # We need this to process any wizard related event
+ QtCore.QCoreApplication.processEvents()
self._wizard = None
self.setVisible(True)