summaryrefslogtreecommitdiff
path: root/src/leap/baseapp
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-10-11 08:23:22 +0900
committerkali <kali@leap.se>2012-10-11 08:23:22 +0900
commitb70a6664f0603297bf8b20809b5a64677900b405 (patch)
tree2071e7d53a5e0ae774a166294ba5253b54548e46 /src/leap/baseapp
parent5dbe01e4dd22fba66d9553c062b89ae9c3a39256 (diff)
add signal to end of eip checks
this fixes random error on leap initialization
Diffstat (limited to 'src/leap/baseapp')
-rw-r--r--src/leap/baseapp/eip.py4
-rw-r--r--src/leap/baseapp/mainwindow.py3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/leap/baseapp/eip.py b/src/leap/baseapp/eip.py
index b67e4444..93dce3ac 100644
--- a/src/leap/baseapp/eip.py
+++ b/src/leap/baseapp/eip.py
@@ -55,9 +55,7 @@ class EIPConductorAppMixin(object):
skip_verify=self.skip_verify)
self.error_check()
- # XXX should send ready signal instead
- if self.conductor.autostart:
- self.start_or_stopVPN()
+ self.start_eipconnection.emit()
def error_check(self):
"""
diff --git a/src/leap/baseapp/mainwindow.py b/src/leap/baseapp/mainwindow.py
index 87886767..3b6cb544 100644
--- a/src/leap/baseapp/mainwindow.py
+++ b/src/leap/baseapp/mainwindow.py
@@ -33,6 +33,7 @@ class LeapWindow(QtGui.QMainWindow,
initReady = QtCore.pyqtSignal([])
networkError = QtCore.pyqtSignal([object])
triggerEIPError = QtCore.pyqtSignal([object])
+ start_eipconnection = QtCore.pyqtSignal([])
# XXX fix nomenclature here
# this is eip status change got from vpn management
@@ -80,6 +81,8 @@ class LeapWindow(QtGui.QMainWindow,
if self.debugmode:
self.startStopButton.clicked.connect(
lambda: self.start_or_stopVPN())
+ self.start_eipconnection.connect(
+ lambda: self.start_or_stopVPN())
# status change.
# TODO unify