summaryrefslogtreecommitdiff
path: root/src/leap/baseapp/mainwindow.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-10-10 05:32:54 +0900
committerkali <kali@leap.se>2012-10-10 05:32:54 +0900
commit5247c690b786f2b3e026fd3e17529f9fd6962d09 (patch)
tree977e0bf6c9e05a685c4168d5879b4820d67d07b3 /src/leap/baseapp/mainwindow.py
parentcf7ddd017f20ca4a3020628999562e9b3b82bd0b (diff)
use signals to pass eip errors across threads
Closes #741
Diffstat (limited to 'src/leap/baseapp/mainwindow.py')
-rw-r--r--src/leap/baseapp/mainwindow.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/leap/baseapp/mainwindow.py b/src/leap/baseapp/mainwindow.py
index bbb5203c..87886767 100644
--- a/src/leap/baseapp/mainwindow.py
+++ b/src/leap/baseapp/mainwindow.py
@@ -26,10 +26,13 @@ class LeapWindow(QtGui.QMainWindow,
that gets tricky otherwise.
"""
+ # signals
+
newLogLine = QtCore.pyqtSignal([str])
mainappReady = QtCore.pyqtSignal([])
initReady = QtCore.pyqtSignal([])
networkError = QtCore.pyqtSignal([object])
+ triggerEIPError = QtCore.pyqtSignal([object])
# XXX fix nomenclature here
# this is eip status change got from vpn management
@@ -71,6 +74,8 @@ class LeapWindow(QtGui.QMainWindow,
lambda: self.onTimerTick())
self.networkError.connect(
lambda exc: self.onNetworkError(exc))
+ self.triggerEIPError.connect(
+ lambda exc: self.onEIPError(exc))
if self.debugmode:
self.startStopButton.clicked.connect(