mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-10 03:42:05 +02:00
Merge pull request #1633
ca29d7e
Qt 5.7 does not support string.startsWith(); use string.indexOf() instead (skftn)
This commit is contained in:
commit
77f0e9b912
@ -339,7 +339,8 @@ Rectangle {
|
||||
}
|
||||
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user