mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-02-02 03:06:26 +00:00
Merge pull request #1749
a79d76f
transfer: prepend '0' to amount starting with '.' (xiphon)
This commit is contained in:
commit
777cea24c8
1 changed files with 5 additions and 0 deletions
|
@ -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})?$/
|
||||
|
|
Loading…
Reference in a new issue