From a79d76ff3fb8e7e5175fb7ab71449aed9d7acb79 Mon Sep 17 00:00:00 2001 From: xiphon Date: Sat, 24 Nov 2018 00:39:17 +0000 Subject: [PATCH] transfer: prepend '0' to amount starting with '.' --- pages/Transfer.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pages/Transfer.qml b/pages/Transfer.qml index d14a21d8..5106aded 100644 --- a/pages/Transfer.qml +++ b/pages/Transfer.qml @@ -144,6 +144,11 @@ Rectangle { fontBold: true inlineButtonText: qsTr("All") + translationManager.emptyString inlineButton.onClicked: amountLine.text = "(all)" + onTextChanged: { + if (amountLine.text.startsWith('.')) { + amountLine.text = '0' + amountLine.text; + } + } validator: RegExpValidator { regExp: /(.|)(\d{1,8})([.]\d{1,12})?$/