Skip to content
Permalink
Browse files

Transfer: warn on long Payment ID filled into description field

  • Loading branch information...
xiphon committed Sep 28, 2019
1 parent d3b81cb commit 947e265a1aa1c51e68303b23e70a4513c2bfe5af
Showing with 7 additions and 1 deletion.
  1. +7 −1 pages/Transfer.qml
@@ -56,7 +56,7 @@ Rectangle {
property bool showAdvanced: false
// @TODO: remove after pid removal hardfork
property bool warningLongPidTransfer: false
property bool warningLongPidDescription: false
property bool warningLongPidDescription: descriptionLine.text.match(/^[0-9a-f]{64}$/i)

Clipboard { id: clipboard }

@@ -331,6 +331,12 @@ Rectangle {
}
}

MoneroComponents.WarningBox {
text: qsTr("Description field contents match long payment ID format. \
Please don't paste long payment ID into description field, your funds might be lost.") + translationManager.emptyString;
visible: warningLongPidDescription
}

ColumnLayout {
spacing: 15

0 comments on commit 947e265

Please sign in to comment.
You can’t perform that action at this time.