summaryrefslogtreecommitdiff
path: root/src/leap/gui/mainwindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/gui/mainwindow.py')
-rw-r--r--src/leap/gui/mainwindow.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/leap/gui/mainwindow.py b/src/leap/gui/mainwindow.py
index 51b96463..cf20c6eb 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)
@@ -474,8 +477,8 @@ class MainWindow(QtGui.QMainWindow):
default_provider = self._settings.get_defaultprovider()
if default_provider is None:
- logger.info("Cannot autostart EIP because there's no default "
- "provider configured")
+ logger.info("Cannot autostart Encrypted Internet because there is "
+ "no default provider configured")
return
self._action_eip_provider.setText(default_provider)
@@ -983,7 +986,7 @@ class MainWindow(QtGui.QMainWindow):
error=True)
except OpenVPNNotFoundException:
self._status_panel.set_eip_status(
- self.tr("We couldn't find openvpn"),
+ self.tr("We couldn't find openvpn binary"),
error=True)
except VPNLauncherException as e:
self._status_panel.set_eip_status("%s" % (e,), error=True)
@@ -1087,7 +1090,7 @@ class MainWindow(QtGui.QMainWindow):
else:
if data[self._eip_bootstrapper.PASSED_KEY]:
self._status_panel.set_eip_status(
- self.tr("Could not load EIP Configuration"),
+ self.tr("Could not load Encrypted Internet Configuration"),
error=True)
else:
self._status_panel.set_eip_status(
@@ -1209,7 +1212,7 @@ class MainWindow(QtGui.QMainWindow):
self._cleanup_pidfiles()
logger.debug('Terminating vpn')
- self._vpn.terminate()
+ self._vpn.terminate(shutdown=True)
def quit(self):
"""