Skip to content

Commit 8008ef7

Browse files
Michael DietzMichael Dietz
authored andcommitted
qt: unlock wallet "OK" button bugfix
When trying to send a transaction from an encrypted wallet, the ask passphrase dialog would not allow the user to click the "OK" button and proceed. Therefore it was impossible to send a transaction through the gui. It was not enabling the "OK" button after the passphrase was entered by the user, because it was using the same form validation logic as the "Change passphrase" flow.
1 parent e2ff5e7 commit 8008ef7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/qt/askpassphrasedialog.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ void AskPassphraseDialog::textChanged()
199199
acceptable = !ui->passEdit2->text().isEmpty() && !ui->passEdit3->text().isEmpty();
200200
break;
201201
case Unlock: // Old passphrase x1
202+
acceptable = !ui->passEdit1->text().isEmpty();
203+
break;
202204
case ChangePass: // Old passphrase x1, new passphrase x2
203205
acceptable = !ui->passEdit1->text().isEmpty() && !ui->passEdit2->text().isEmpty() && !ui->passEdit3->text().isEmpty();
204206
break;

0 commit comments

Comments
 (0)