diff options
author | kali <kali@leap.se> | 2012-08-08 06:53:10 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2012-08-08 06:53:10 +0900 |
commit | 530e10214a6f018909714b288d997df13ab4f9df (patch) | |
tree | 995596699e26d27ddcbd442698646b32dd11ba6c /src/leap/baseapp/dialogs.py | |
parent | 36b0dfacca794e9cb899b5dde2dae3b8bbc6cc43 (diff) |
check for bad permissions on vpn key files
Diffstat (limited to 'src/leap/baseapp/dialogs.py')
-rw-r--r-- | src/leap/baseapp/dialogs.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/leap/baseapp/dialogs.py b/src/leap/baseapp/dialogs.py index d4e51a39..4b1b5b62 100644 --- a/src/leap/baseapp/dialogs.py +++ b/src/leap/baseapp/dialogs.py @@ -20,3 +20,14 @@ class ErrorDialog(QDialog): self.warningLabel.setText("Save Again") else: self.warningLabel.setText("Continue") + + def criticalMessage(self, msg, label): + msgBox = QMessageBox(QMessageBox.Critical, + "QMessageBox.critical()", msg, + QMessageBox.NoButton, self) + msgBox.addButton("&Ok", QMessageBox.AcceptRole) + msgBox.addButton("&Cancel", QMessageBox.RejectRole) + if msgBox.exec_() == QMessageBox.AcceptRole: + self.warningLabel.setText("Save Again") + else: + self.warningLabel.setText("Continue") |