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:
Mike Hearn
2015-02-25 18:49:25 +01:00
parent 03f2f9e47a
commit 99ff22d77b

View File

@@ -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);
});
}