mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 08:17:59 +00:00
Qt 5.7 does not support string.startsWith(); use string.indexOf() instead
This commit is contained in:
parent
b4e0dd107c
commit
ca29d7e1be
1 changed files with 2 additions and 1 deletions
|
@ -339,7 +339,8 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
// The amount does not start with a period (example: `.4`)
|
// The amount does not start with a period (example: `.4`)
|
||||||
if(amountLine.text.startsWith('.')){
|
// @TODO: replace with .startsWith() after Qt >=5.8
|
||||||
|
if(amountLine.text.indexOf('.') === 0){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue