mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-14 08:47:26 -04:00
string.startsWith() is not available in Qt versions lower than 5.8. Replace with string.indexOf()
This commit is contained in:
@@ -453,7 +453,7 @@ Rectangle {
|
||||
fontBold: true
|
||||
inlineIcon: true
|
||||
onTextChanged: {
|
||||
if (amountToReceiveLine.text.startsWith('.')) {
|
||||
if(amountToReceiveLine.text.indexOf('.') === 0){
|
||||
amountToReceiveLine.text = '0' + amountToReceiveLine.text;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user