From 02ab113762d4ac5f6b77dbb29a9eabd0fd71e481 Mon Sep 17 00:00:00 2001 From: Jaquee Date: Sat, 4 Feb 2017 14:44:30 +0100 Subject: [PATCH] clear payment fields after transfer --- main.qml | 4 ++++ pages/Transfer.qml | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/main.qml b/main.qml index 520b1397..5c863953 100644 --- a/main.qml +++ b/main.qml @@ -626,6 +626,10 @@ ApplicationWindow { for (var i = 0; i < txid.length; ++i) currentWallet.setUserNote(txid[i], transactionDescription); } + + // Clear tx fields + middlePanel.transferView.clearFields() + } informationPopup.onCloseCallback = null informationPopup.open() diff --git a/pages/Transfer.qml b/pages/Transfer.qml index 79efc28d..1d482474 100644 --- a/pages/Transfer.qml +++ b/pages/Transfer.qml @@ -86,6 +86,13 @@ Rectangle { cameraUi.qrcode_decoded.disconnect(updateFromQrCode) } + function clearFields() { + addressLine.text = "" + paymentIdLine.text = "" + amountLine.text = "" + descriptionLine.text = "" + } + // Information dialog StandardDialog { // dynamically change onclose handler