From e6fe9d3045100daa9c5b45507ba5c16ad2b54e27 Mon Sep 17 00:00:00 2001 From: Jacob Brydolf Date: Sun, 30 Oct 2016 21:33:14 +0100 Subject: [PATCH] wizard: empty seed box on page load --- wizard/WizardRecoveryWallet.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wizard/WizardRecoveryWallet.qml b/wizard/WizardRecoveryWallet.qml index 70bf3d78..236c59a1 100644 --- a/wizard/WizardRecoveryWallet.qml +++ b/wizard/WizardRecoveryWallet.qml @@ -43,6 +43,8 @@ Item { function onPageOpened(settingsObject) { checkNextButton(); + // Empty seedText when restoring multiple times in one session + uiItem.wordsTextItem.memoText = ""; } function checkNextButton() { @@ -54,7 +56,8 @@ Item { settingsObject['account_name'] = uiItem.accountNameText settingsObject['words'] = Utils.lineBreaksToSpaces(uiItem.wordsTextItem.memoText) settingsObject['wallet_path'] = uiItem.walletPath - settingsObject['restore_height'] = parseInt(uiItem.restoreHeight) + var restoreHeight = parseInt(uiItem.restoreHeight); + settingsObject['restore_height'] = isNaN(restoreHeight)? 0 : restoreHeight var walletFullPath = wizard.createWalletPath(uiItem.walletPath,uiItem.accountNameText); if(wizard.walletExists(walletFullPath)){ return false