aboutsummaryrefslogtreecommitdiff
path: root/wizard/WizardRecoveryWallet.qml
diff options
context:
space:
mode:
authorJacob Brydolf <jacob@brydolf.net>2016-10-30 21:33:14 +0100
committerJacob Brydolf <jacob@brydolf.net>2016-10-30 21:33:14 +0100
commite6fe9d3045100daa9c5b45507ba5c16ad2b54e27 (patch)
treeedf412a0e647b64d7f3e906c6bac8cf758da1bc2 /wizard/WizardRecoveryWallet.qml
parent776a5911905d1c5edec020f814a4341c2db1b567 (diff)
downloadmonzero-gui-e6fe9d3045100daa9c5b45507ba5c16ad2b54e27.tar.gz
monzero-gui-e6fe9d3045100daa9c5b45507ba5c16ad2b54e27.tar.xz
monzero-gui-e6fe9d3045100daa9c5b45507ba5c16ad2b54e27.zip
wizard: empty seed box on page load
Diffstat (limited to 'wizard/WizardRecoveryWallet.qml')
-rw-r--r--wizard/WizardRecoveryWallet.qml5
1 files changed, 4 insertions, 1 deletions
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