summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2013-11-19 17:13:38 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2013-11-19 17:16:48 -0300
commit307bf9e5512d3e2037078b5722f9f9c8879e5446 (patch)
tree5229b0e190441c5365b39e5d3f45a49dae35388e
parentaa969cdbc9d8d0c77b0fa0e2c72164e8cb816c87 (diff)
Remove unused execution path.
-rw-r--r--src/leap/bitmask/gui/mainwindow.py23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/leap/bitmask/gui/mainwindow.py b/src/leap/bitmask/gui/mainwindow.py
index 9074df2b..ac73e08b 100644
--- a/src/leap/bitmask/gui/mainwindow.py
+++ b/src/leap/bitmask/gui/mainwindow.py
@@ -358,17 +358,17 @@ class MainWindow(QtGui.QMainWindow):
Called if the wizard has been cancelled or closed before
finishing.
+ This is executed for the first run wizard only. Any other execution of
+ the wizard won't reach this point.
"""
- if self._wizard_firstrun:
- providers = self._settings.get_configured_providers()
- has_provider_on_disk = len(providers) != 0
- if not has_provider_on_disk:
- # if we don't have any provider configured (included a pinned
- # one) we can't use the application, so quit.
- self.quit()
- self.eip_needs_login.emit()
- else:
- self._finish_init()
+ providers = self._settings.get_configured_providers()
+ has_provider_on_disk = len(providers) != 0
+ if not has_provider_on_disk:
+ # if we don't have any provider configured (included a pinned
+ # one) we can't use the application, so quit.
+ self.quit()
+
+ self.eip_needs_login.emit()
def _launch_wizard(self):
"""
@@ -539,8 +539,7 @@ class MainWindow(QtGui.QMainWindow):
TRIGGERS:
self._wizard.accepted
- Also called at the end of the constructor if not first run,
- and after _rejected_wizard if not first run.
+ Also called at the end of the constructor if not first run.
Implements the behavior after either constructing the
mainwindow object, loading the saved user/password, or after