aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormochaccinuh <mochaccinuh@users.noreply.github.com>2016-11-29 17:45:40 +0100
committermochaccinuh <mochaccinuh@users.noreply.github.com>2016-11-29 19:35:43 +0100
commitf41a84252553993c2c7e92109c0f5dbf0db1fea7 (patch)
tree618bb0edb796587949cabd6d227be1f6f16806ab
parent26abdee5c47017a80117b1bed5ee36586a240c62 (diff)
downloadmonzero-gui-f41a84252553993c2c7e92109c0f5dbf0db1fea7.tar.gz
monzero-gui-f41a84252553993c2c7e92109c0f5dbf0db1fea7.tar.xz
monzero-gui-f41a84252553993c2c7e92109c0f5dbf0db1fea7.zip
Wizard: fix wrong wallet loaded in open from file
Wizard: move cleanup logic to WizardMain.qml Wizard: move cleanup logic to WizardMain.qml
-rw-r--r--wizard/WizardMain.qml5
1 files changed, 5 insertions, 0 deletions
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();
}