Skip to content
Snippets Groups Projects
Commit f3449a87 authored by Vincent Texier's avatar Vincent Texier
Browse files

Fix bug when entering account password

Fix bug contact radio button on transfer money dialog
parent a5571736
No related branches found
No related tags found
No related merge requests found
...@@ -66,12 +66,12 @@ class StepPageKey(Step): ...@@ -66,12 +66,12 @@ class StepPageKey(Step):
if len(self.config_dialog.edit_email.text()) < 2: if len(self.config_dialog.edit_email.text()) < 2:
return False return False
if len(self.config_dialog.edit_password.text()) < 8: if len(self.config_dialog.edit_password.text()) < 6:
self.config_dialog.label_info.setText("Warning : password is too short") self.config_dialog.label_3.setText("Warning : password is too short")
if self.config_dialog.edit_password.text() != \ if self.config_dialog.edit_password.text() != \
self.config_dialog.edit_password_repeat.text(): self.config_dialog.edit_password_repeat.text():
self.config_dialog.label_info.setText("Error : passwords are different") self.config_dialog.label_3.setText("Error : passwords are different")
return False return False
return True return True
......
...@@ -40,8 +40,8 @@ class TransferMoneyDialog(QDialog, Ui_TransferMoneyDialog): ...@@ -40,8 +40,8 @@ class TransferMoneyDialog(QDialog, Ui_TransferMoneyDialog):
def accept(self): def accept(self):
message = self.edit_message.text() message = self.edit_message.text()
recipient = ""
if self.radio_contact.isEnabled(): if self.radio_contact.isChecked():
index = self.combo_contact.currentIndex() index = self.combo_contact.currentIndex()
recipient = self.sender.contacts[index].pubkey recipient = self.sender.contacts[index].pubkey
else: else:
......
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