summaryrefslogtreecommitdiff
path: root/src/leap/baseapp
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-08-08 07:01:27 +0900
committerkali <kali@leap.se>2012-08-08 07:01:27 +0900
commite81ddf7648e1075a15d8add11cd975a73aa09926 (patch)
tree7c0c835486e3e52ccd83b80c9c1e17fb7725d0a9 /src/leap/baseapp
parent530e10214a6f018909714b288d997df13ab4f9df (diff)
catch missing keyfile error
Diffstat (limited to 'src/leap/baseapp')
-rw-r--r--src/leap/baseapp/mainwindow.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/leap/baseapp/mainwindow.py b/src/leap/baseapp/mainwindow.py
index cbdd2d07..c54eb97f 100644
--- a/src/leap/baseapp/mainwindow.py
+++ b/src/leap/baseapp/mainwindow.py
@@ -79,6 +79,19 @@ class LeapWindow(QMainWindow):
status_signals=(self.statusChange.emit, ),
debug=self.debugmode)
+ # bunch of self checks.
+ # XXX move somewhere else alltogether.
+
+ if self.conductor.missing_vpn_keyfile is True:
+ dialog = ErrorDialog()
+ dialog.criticalMessage(
+ 'Could not find the vpn keys file',
+ 'error')
+
+ # ... btw, review pending.
+ # os.kill of subprocess fails if we have
+ # some of this errors.
+
if self.conductor.bad_keyfile_perms is True:
dialog = ErrorDialog()
dialog.criticalMessage(