Skip to content
Snippets Groups Projects
Commit 240eb294 authored by inso's avatar inso
Browse files

Fixed bugs in password asker

parent 98507a96
No related branches found
No related tags found
No related merge requests found
......@@ -56,12 +56,12 @@
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
<x>136</x>
<y>78</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
<x>136</x>
<y>49</y>
</hint>
</hints>
</connection>
......@@ -72,12 +72,12 @@
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
<x>136</x>
<y>78</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
<x>136</x>
<y>49</y>
</hint>
</hints>
</connection>
......
__version_info__ = ('0', '7', '4')
__version_info__ = ('0', '7', '5')
__version__ = '.'.join(__version_info__)
......@@ -43,9 +43,8 @@ class PasswordAskerDialog(QDialog, Ui_PasswordAskerDialog):
self.remember = self.check_remember.isChecked()
self.password = password
self.edit_password.setText("")
self.accepted.emit()
self.close()
logging.debug("Password is valid")
super().accept()
else:
QMessageBox.warning(self, "Failed to get private key",
"Wrong password typed. Cannot open the private key",
......@@ -53,6 +52,6 @@ class PasswordAskerDialog(QDialog, Ui_PasswordAskerDialog):
def reject(self):
self.edit_password.setText("")
logging.debug("Cancelled")
self.password = ""
self.rejected.emit()
self.close()
super().reject()
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