From ca29d7e1be5d5e128ae3c391bd5d9244942a8ff3 Mon Sep 17 00:00:00 2001 From: Sander Ferdinand Date: Wed, 10 Oct 2018 20:14:06 +0200 Subject: [PATCH] Qt 5.7 does not support string.startsWith(); use string.indexOf() instead --- pages/Transfer.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/Transfer.qml b/pages/Transfer.qml index 657a033c..901b65e8 100644 --- a/pages/Transfer.qml +++ b/pages/Transfer.qml @@ -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; }