forked from Public/monero-gui
string.startsWith() is not available in Qt versions lower than 5.8. Replace with string.indexOf()
This commit is contained in:
@@ -145,7 +145,7 @@ Rectangle {
|
||||
inlineButtonText: qsTr("All") + translationManager.emptyString
|
||||
inlineButton.onClicked: amountLine.text = "(all)"
|
||||
onTextChanged: {
|
||||
if (amountLine.text.startsWith('.')) {
|
||||
if(amountLine.text.indexOf('.') === 0){
|
||||
amountLine.text = '0' + amountLine.text;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user