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

Fixed bugs in password asker

parent 98507a96
Branches
Tags
No related merge requests found
...@@ -56,12 +56,12 @@ ...@@ -56,12 +56,12 @@
<slot>accept()</slot> <slot>accept()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">
<x>248</x> <x>136</x>
<y>254</y> <y>78</y>
</hint> </hint>
<hint type="destinationlabel"> <hint type="destinationlabel">
<x>157</x> <x>136</x>
<y>274</y> <y>49</y>
</hint> </hint>
</hints> </hints>
</connection> </connection>
...@@ -72,12 +72,12 @@ ...@@ -72,12 +72,12 @@
<slot>reject()</slot> <slot>reject()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">
<x>316</x> <x>136</x>
<y>260</y> <y>78</y>
</hint> </hint>
<hint type="destinationlabel"> <hint type="destinationlabel">
<x>286</x> <x>136</x>
<y>274</y> <y>49</y>
</hint> </hint>
</hints> </hints>
</connection> </connection>
......
__version_info__ = ('0', '7', '4') __version_info__ = ('0', '7', '5')
__version__ = '.'.join(__version_info__) __version__ = '.'.join(__version_info__)
...@@ -43,9 +43,8 @@ class PasswordAskerDialog(QDialog, Ui_PasswordAskerDialog): ...@@ -43,9 +43,8 @@ class PasswordAskerDialog(QDialog, Ui_PasswordAskerDialog):
self.remember = self.check_remember.isChecked() self.remember = self.check_remember.isChecked()
self.password = password self.password = password
self.edit_password.setText("") self.edit_password.setText("")
logging.debug("Password is valid")
self.accepted.emit() super().accept()
self.close()
else: else:
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",
...@@ -53,6 +52,6 @@ class PasswordAskerDialog(QDialog, Ui_PasswordAskerDialog): ...@@ -53,6 +52,6 @@ class PasswordAskerDialog(QDialog, Ui_PasswordAskerDialog):
def reject(self): def reject(self):
self.edit_password.setText("") self.edit_password.setText("")
logging.debug("Cancelled")
self.password = "" self.password = ""
self.rejected.emit() super().reject()
self.close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment