mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-03 05:57:21 +00:00
Fix a bug in SendMoneyController that caused it to forget the amount of money requested across password requests. Fixes #316.
This commit is contained in:
@@ -88,6 +88,7 @@ public class SendMoneyController {
|
||||
private void askForPasswordAndRetry() {
|
||||
Main.OverlayUI<WalletPasswordController> pwd = Main.instance.overlayUI("wallet_password.fxml");
|
||||
final String addressStr = address.getText();
|
||||
final String amountStr = amountEdit.getText();
|
||||
pwd.controller.aesKeyProperty().addListener((observable, old, cur) -> {
|
||||
// We only get here if the user found the right password. If they don't or they cancel, we end up back on
|
||||
// the main UI screen. By now the send money screen is history so we must recreate it.
|
||||
@@ -95,6 +96,7 @@ public class SendMoneyController {
|
||||
Main.OverlayUI<SendMoneyController> screen = Main.instance.overlayUI("send_money.fxml");
|
||||
screen.controller.aesKey = cur;
|
||||
screen.controller.address.setText(addressStr);
|
||||
screen.controller.amountEdit.setText(amountStr);
|
||||
screen.controller.send(null);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user