mirror of
https://github.com/monero-project/monero-gui
synced 2024-11-19 13:37:13 +01:00
string.startsWith() is not available in Qt versions lower than 5.8. Replace with string.indexOf()
This commit is contained in:
parent
e650818016
commit
b466f9fe96
@ -453,7 +453,7 @@ Rectangle {
|
|||||||
fontBold: true
|
fontBold: true
|
||||||
inlineIcon: true
|
inlineIcon: true
|
||||||
onTextChanged: {
|
onTextChanged: {
|
||||||
if (amountToReceiveLine.text.startsWith('.')) {
|
if(amountToReceiveLine.text.indexOf('.') === 0){
|
||||||
amountToReceiveLine.text = '0' + amountToReceiveLine.text;
|
amountToReceiveLine.text = '0' + amountToReceiveLine.text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -145,7 +145,7 @@ Rectangle {
|
|||||||
inlineButtonText: qsTr("All") + translationManager.emptyString
|
inlineButtonText: qsTr("All") + translationManager.emptyString
|
||||||
inlineButton.onClicked: amountLine.text = "(all)"
|
inlineButton.onClicked: amountLine.text = "(all)"
|
||||||
onTextChanged: {
|
onTextChanged: {
|
||||||
if (amountLine.text.startsWith('.')) {
|
if(amountLine.text.indexOf('.') === 0){
|
||||||
amountLine.text = '0' + amountLine.text;
|
amountLine.text = '0' + amountLine.text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user