mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-10 03:42:05 +02:00
transfer: prepend '0' to amount starting with '.'
This commit is contained in:
parent
3e57bb344e
commit
a79d76ff3f
@ -144,6 +144,11 @@ Rectangle {
|
|||||||
fontBold: true
|
fontBold: true
|
||||||
inlineButtonText: qsTr("All") + translationManager.emptyString
|
inlineButtonText: qsTr("All") + translationManager.emptyString
|
||||||
inlineButton.onClicked: amountLine.text = "(all)"
|
inlineButton.onClicked: amountLine.text = "(all)"
|
||||||
|
onTextChanged: {
|
||||||
|
if (amountLine.text.startsWith('.')) {
|
||||||
|
amountLine.text = '0' + amountLine.text;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
validator: RegExpValidator {
|
validator: RegExpValidator {
|
||||||
regExp: /(.|)(\d{1,8})([.]\d{1,12})?$/
|
regExp: /(.|)(\d{1,8})([.]\d{1,12})?$/
|
||||||
|
Loading…
Reference in New Issue
Block a user