summaryrefslogtreecommitdiff
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
parent332f4fe1338b72eaa7bc2a2878ce30129004319e (diff)
Close the app on rejected wizard. Closes bug #2905
-rw-r--r--changes/bug-2905_close-app-on-rejected-wizard1
-rw-r--r--src/leap/gui/mainwindow.py5
2 files changed, 5 insertions, 1 deletions
diff --git a/changes/bug-2905_close-app-on-rejected-wizard b/changes/bug-2905_close-app-on-rejected-wizard
new file mode 100644
index 00000000..cf3b8e3d
--- /dev/null
+++ b/changes/bug-2905_close-app-on-rejected-wizard
@@ -0,0 +1 @@
+ o Close the app on rejected wizard. Closes bug #2905.
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)