From f41a84252553993c2c7e92109c0f5dbf0db1fea7 Mon Sep 17 00:00:00 2001 From: mochaccinuh Date: Tue, 29 Nov 2016 17:45:40 +0100 Subject: [PATCH] Wizard: fix wrong wallet loaded in open from file Wizard: move cleanup logic to WizardMain.qml Wizard: move cleanup logic to WizardMain.qml --- wizard/WizardMain.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wizard/WizardMain.qml b/wizard/WizardMain.qml index 446d7720..1d1e868f 100644 --- a/wizard/WizardMain.qml +++ b/wizard/WizardMain.qml @@ -128,6 +128,11 @@ Rectangle { function openOpenWalletPage() { console.log("open wallet from file page"); + if (typeof wizard.settings['wallet'] !== 'undefined') { + settings.wallet.destroy(); + delete wizard.settings['wallet']; + } + wizard.openWalletFromFileClicked(); }