summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-08-12 17:12:11 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-08-13 16:02:21 -0300
commitdd2097d27efc32820a25faff9236d091372f7930 (patch)
tree322a76f71458f10976302db2661df130cf37c32b
parent1d8fd48517a44f81d816eba2488e23fe3080f83b (diff)
Ask for services stop when the wizard is needed.
-rw-r--r--src/leap/bitmask/gui/mainwindow.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/leap/bitmask/gui/mainwindow.py b/src/leap/bitmask/gui/mainwindow.py
index a85cb657..03f91996 100644
--- a/src/leap/bitmask/gui/mainwindow.py
+++ b/src/leap/bitmask/gui/mainwindow.py
@@ -215,8 +215,9 @@ class MainWindow(QtGui.QMainWindow):
self.ui.action_wizard.triggered.connect(self._launch_wizard)
self.ui.action_show_logs.triggered.connect(self._show_logger_window)
self.ui.action_help.triggered.connect(self._help)
+
self.ui.action_create_new_account.triggered.connect(
- self._launch_wizard)
+ self._on_provider_changed)
self.ui.action_advanced_key_management.triggered.connect(
self._show_AKM)
@@ -1226,10 +1227,11 @@ class MainWindow(QtGui.QMainWindow):
pass
@QtCore.Slot(object)
- def _on_provider_changed(self, wizard):
+ def _on_provider_changed(self, wizard=True):
"""
TRIGGERS:
self._login.provider_changed
+ self.ui.action_create_new_account.triggered
Ask the user if really wants to change provider since a services stop
is required for that action.
@@ -1251,6 +1253,9 @@ class MainWindow(QtGui.QMainWindow):
text = self.tr("<b>Do you want to stop all services?</b>")
informative_text = self.tr("In order to change the provider, the "
"running services needs to be stopped.")
+ if wizard:
+ informative_text = self.tr("In order to start the wizard, the "
+ "running services needs to be stopped.")
msg = QtGui.QMessageBox(self)
msg.setWindowTitle(title)