aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSander Ferdinand <sa.ferdinand@gmail.com>2018-03-27 21:12:10 +0200
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-29 23:04:04 +0100
commit0b7966f625207968c99b86efd52dda5b1b0df1ae (patch)
treea4cfad39363f586154b29d7df3f896670ec8597e
parent9afaa7cf0f4ff3ba954a96b9bfd5f462040d452b (diff)
downloadmonzero-gui-0b7966f625207968c99b86efd52dda5b1b0df1ae.tar.gz
monzero-gui-0b7966f625207968c99b86efd52dda5b1b0df1ae.tar.xz
monzero-gui-0b7966f625207968c99b86efd52dda5b1b0df1ae.zip
Fixes transaction confirmation dialog and also makes sure you will not be able to transfer funds when the daemon is not up (to date)
-rw-r--r--main.qml1
-rw-r--r--pages/Transfer.qml8
2 files changed, 8 insertions, 1 deletions
diff --git a/main.qml b/main.qml
index 5b1cabfb..ba9064c2 100644
--- a/main.qml
+++ b/main.qml
@@ -611,6 +611,7 @@ ApplicationWindow {
// here we show confirmation popup;
transactionConfirmationPopup.title = qsTr("Please confirm transaction:\n") + translationManager.emptyString;
+ transactionConfirmationPopup.text = "";
transactionConfirmationPopup.text +=
(address === "" ? "" : (qsTr("\n\nAddress: ") + address))
+ (paymentId === "" ? "" : (qsTr("\nPayment ID: ") + paymentId))
diff --git a/pages/Transfer.qml b/pages/Transfer.qml
index 8f212dd9..db46f04d 100644
--- a/pages/Transfer.qml
+++ b/pages/Transfer.qml
@@ -332,7 +332,13 @@ Rectangle {
rightIcon: "../images/rightIcon.png"
Layout.topMargin: 4 * scaleRatio
text: qsTr("Send") + translationManager.emptyString
- enabled : !appWindow.viewOnly && pageRoot.checkInformation(amountLine.text, addressLine.text, paymentIdLine.text, appWindow.persistentSettings.nettype)
+ enabled : {
+ // Send button is enabled when:
+ // 1) Currently opened wallet is not view-only
+ // 2) There is no warning box displayed
+ // 3) The transactional information is correct
+ return !appWindow.viewOnly && warningText.text === '' && pageRoot.checkInformation(amountLine.text, addressLine.text, paymentIdLine.text, appWindow.persistentSettings.nettype);
+ }
onClicked: {
console.log("Transfer: paymentClicked")
var priority = priorityModelV5.get(priorityDropdown.currentIndex).priority