Wizard: fix wrong wallet loaded in open from file

Wizard: move cleanup logic to WizardMain.qml

Wizard: move cleanup logic to WizardMain.qml
This commit is contained in:
mochaccinuh 2016-11-29 17:45:40 +01:00
parent 26abdee5c4
commit f41a842525

View file

@ -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();
}