summaryrefslogtreecommitdiff
path: root/src/leap/gui
diff options
context:
space:
mode:
authorkali <kali@leap.se>2013-06-12 02:02:16 +0900
committerkali <kali@leap.se>2013-06-12 02:02:16 +0900
commit90fe21d31858f894dfec9bf37f432a7f39dd2b6f (patch)
tree5b0245a15a276ea00094ed1a54a9e8aa392d0f1e /src/leap/gui
parent20c78001df4cabccd062004e1a6a4f323ca594b8 (diff)
parent56f90d03b40e2a138a8b653de408f207ad562a09 (diff)
Merge remote-tracking branch 'chiiph/feature/selected_provider_config' into develop
Diffstat (limited to 'src/leap/gui')
-rw-r--r--src/leap/gui/mainwindow.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/leap/gui/mainwindow.py b/src/leap/gui/mainwindow.py
index f8175b7f..aef7c601 100644
--- a/src/leap/gui/mainwindow.py
+++ b/src/leap/gui/mainwindow.py
@@ -889,12 +889,24 @@ class MainWindow(QtGui.QMainWindow):
return host, port
def _start_eip(self):
+ """
+ SLOT
+ TRIGGERS:
+ self.ui.btnEipStartStop.clicked
+ self._action_eip_startstop.triggered
+ or called from _finish_eip_bootstrap
+
+ Starts EIP
+ """
try:
host, port = self._get_socket_host()
self._vpn.start(eipconfig=self._eip_config,
providerconfig=self._provider_config,
socket_host=host,
socket_port=port)
+
+ self._settings.set_defaultprovider(self._provider_config.get_domain())
+
self.ui.btnEipStartStop.setText(self.tr("Stop EIP"))
self.ui.btnEipStartStop.disconnect(self)
self.ui.btnEipStartStop.clicked.connect(