summaryrefslogtreecommitdiff
path: root/src/leap/baseapp/mainwindow.py
diff options
context:
space:
mode:
authorantialias <antialias@leap.se>2012-10-01 15:10:55 -0400
committerantialias <antialias@leap.se>2012-10-01 15:10:55 -0400
commit95ce59c8833cb2ba951630080cdbc1e6d756a666 (patch)
tree8434a07650ef78497daff7e2f9f100a500adf9b4 /src/leap/baseapp/mainwindow.py
parentc75b27484a999f70a6e28e521f236cf2d403edd1 (diff)
Still some QT related problems. Hand off to kali to fix.
Diffstat (limited to 'src/leap/baseapp/mainwindow.py')
-rw-r--r--src/leap/baseapp/mainwindow.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/leap/baseapp/mainwindow.py b/src/leap/baseapp/mainwindow.py
index 7b2ecb1d..000db8c9 100644
--- a/src/leap/baseapp/mainwindow.py
+++ b/src/leap/baseapp/mainwindow.py
@@ -28,6 +28,7 @@ class LeapWindow(QtGui.QMainWindow,
newLogLine = QtCore.pyqtSignal([str])
statusChange = QtCore.pyqtSignal([object])
+ networkError = QtCore.pyqtSignal([object])
def __init__(self, opts):
logger.debug('init leap window')
@@ -57,3 +58,16 @@ class LeapWindow(QtGui.QMainWindow,
# eipapp should catch that
if self.conductor.autostart:
self.start_or_stopVPN()
+
+ #TODO: Put all Dialogs in one place
+ @QtCore.pyqtSlot()
+ def raise_Network_Error(self, exc):
+ message = exc.message
+
+ # XXX
+ # check headless = False before
+ # launching dialog.
+ # (so Qt tests can assert stuff)
+
+ dialog = ErrorDialog()
+ dialog.warningMessage(message, 'error')