Skip to content
Snippets Groups Projects
Commit 98507a96 authored by inso's avatar inso
Browse files

Fixed a bug when canceling password asking

parent 1987a76b
No related branches found
No related tags found
No related merge requests found
...@@ -50,3 +50,9 @@ class PasswordAskerDialog(QDialog, Ui_PasswordAskerDialog): ...@@ -50,3 +50,9 @@ class PasswordAskerDialog(QDialog, Ui_PasswordAskerDialog):
QMessageBox.warning(self, "Failed to get private key", QMessageBox.warning(self, "Failed to get private key",
"Wrong password typed. Cannot open the private key", "Wrong password typed. Cannot open the private key",
QMessageBox.Ok) QMessageBox.Ok)
def reject(self):
self.edit_password.setText("")
self.password = ""
self.rejected.emit()
self.close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment