diff --git a/pages/Receive.qml b/pages/Receive.qml index 24dd787d..f5adbca8 100644 --- a/pages/Receive.qml +++ b/pages/Receive.qml @@ -452,7 +452,7 @@ Rectangle { fontBold: true inlineIcon: true onTextChanged: { - if (amountToReceiveLine.text.startsWith('.')) { + if(amountToReceiveLine.text.indexOf('.') === 0){ amountToReceiveLine.text = '0' + amountToReceiveLine.text; } } diff --git a/pages/Transfer.qml b/pages/Transfer.qml index 3207e432..f766bc72 100644 --- a/pages/Transfer.qml +++ b/pages/Transfer.qml @@ -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; } } diff --git a/wizard/WizardOptions.qml b/wizard/WizardOptions.qml index 1f39d86e..b4cc7571 100644 --- a/wizard/WizardOptions.qml +++ b/wizard/WizardOptions.qml @@ -385,7 +385,7 @@ ColumnLayout { color: "#4A4949" text: persistentSettings.kdfRounds validator: IntValidator { bottom: 1 } - onTextEdited: { + onEditingFinished: { kdfRoundsText.text = persistentSettings.kdfRounds = parseInt(kdfRoundsText.text) >= 1 ? parseInt(kdfRoundsText.text) : 1; } }