aboutsummaryrefslogtreecommitdiff
path: root/wizard
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2016-12-17 15:38:43 +0100
committerJaquee <jaquee.monero@gmail.com>2016-12-17 15:38:43 +0100
commit0b7efa19ef4950a8e72e410b7e6737f44a7935e6 (patch)
treee5001aca5064b77d091ff300c6021a5d15eaaaee /wizard
parent55f4858a40948da244b1b5c48799d35f69f7a4a3 (diff)
downloadmonzero-gui-0b7efa19ef4950a8e72e410b7e6737f44a7935e6.tar.gz
monzero-gui-0b7efa19ef4950a8e72e410b7e6737f44a7935e6.tar.xz
monzero-gui-0b7efa19ef4950a8e72e410b7e6737f44a7935e6.zip
Wizard: Prevent user from getting trapped
Diffstat (limited to 'wizard')
-rw-r--r--wizard/WizardMain.qml6
-rw-r--r--wizard/WizardRecoveryWallet.qml6
2 files changed, 5 insertions, 7 deletions
diff --git a/wizard/WizardMain.qml b/wizard/WizardMain.qml
index eabbec8e..dc84a4a4 100644
--- a/wizard/WizardMain.qml
+++ b/wizard/WizardMain.qml
@@ -92,8 +92,8 @@ Rectangle {
var nextButtonVisible = pages[currentPage] !== optionsPage;
nextButton.visible = nextButtonVisible;
- if (next && typeof pages[currentPage].onPageOpened !== 'undefined') {
- pages[currentPage].onPageOpened(settings)
+ if (typeof pages[currentPage].onPageOpened !== 'undefined') {
+ pages[currentPage].onPageOpened(settings,next)
}
@@ -113,8 +113,6 @@ Rectangle {
createWalletPage.createWallet(settings)
wizard.nextButton.visible = true
createWalletPage.onPageOpened(settings);
-
-
}
function openRecoveryWalletPage() {
diff --git a/wizard/WizardRecoveryWallet.qml b/wizard/WizardRecoveryWallet.qml
index 2c75225e..e93eddce 100644
--- a/wizard/WizardRecoveryWallet.qml
+++ b/wizard/WizardRecoveryWallet.qml
@@ -44,12 +44,12 @@ Item {
function onWizardRestarted() {
// reset account name field
uiItem.accountNameText = defaultAccountName
+ // Empty seedText
+ uiItem.wordsTextItem.memoText = "";
}
function onPageOpened(settingsObject) {
- checkNextButton();
- // Empty seedText when restoring multiple times in one session
- uiItem.wordsTextItem.memoText = "";
+ checkNextButton();
}
function checkNextButton() {