mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 00:07:51 +00:00
commit
5b725a4f20
2 changed files with 5 additions and 13 deletions
|
@ -57,7 +57,7 @@ Rectangle {
|
||||||
var nfields = 0
|
var nfields = 0
|
||||||
s += current_address;
|
s += current_address;
|
||||||
var amount = amountToReceiveLine.text.trim()
|
var amount = amountToReceiveLine.text.trim()
|
||||||
if (amount !== "") {
|
if (amount !== "" && amount.slice(-1) !== ".") {
|
||||||
s += (nfields++ ? "&" : "?")
|
s += (nfields++ ? "&" : "?")
|
||||||
s += "tx_amount=" + amount
|
s += "tx_amount=" + amount
|
||||||
}
|
}
|
||||||
|
@ -456,12 +456,8 @@ Rectangle {
|
||||||
placeholderText: qsTr("Amount to receive") + translationManager.emptyString
|
placeholderText: qsTr("Amount to receive") + translationManager.emptyString
|
||||||
fontBold: true
|
fontBold: true
|
||||||
inlineIcon: true
|
inlineIcon: true
|
||||||
validator: DoubleValidator {
|
validator: RegExpValidator {
|
||||||
bottom: 0.0
|
regExp: /(\d{1,8})([.]\d{1,12})?$/
|
||||||
top: 18446744.073709551615
|
|
||||||
decimals: 12
|
|
||||||
notation: DoubleValidator.StandardNotation
|
|
||||||
locale: "C"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -193,12 +193,8 @@ Rectangle {
|
||||||
inlineButtonText: qsTr("All") + translationManager.emptyString
|
inlineButtonText: qsTr("All") + translationManager.emptyString
|
||||||
inlineButton.onClicked: amountLine.text = "(all)"
|
inlineButton.onClicked: amountLine.text = "(all)"
|
||||||
|
|
||||||
validator: DoubleValidator {
|
validator: RegExpValidator {
|
||||||
bottom: 0.0
|
regExp: /(\d{1,8})([.]\d{1,12})?$/
|
||||||
top: 18446744.073709551615
|
|
||||||
decimals: 12
|
|
||||||
notation: DoubleValidator.StandardNotation
|
|
||||||
locale: "C"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue