From bfcfb1f2408a8d32d0370558f58b74071315e38a Mon Sep 17 00:00:00 2001 From: ThomasV Date: Mon, 24 Jul 2017 18:35:33 +0200 Subject: [PATCH] wizard: make sure terminate is always called --- gui/qt/__init__.py | 1 + gui/qt/installwizard.py | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/gui/qt/__init__.py b/gui/qt/__init__.py index 2eb561c77..6a066f932 100644 --- a/gui/qt/__init__.py +++ b/gui/qt/__init__.py @@ -173,6 +173,7 @@ class ElectrumGui: storage = WalletStorage(path) wizard = InstallWizard(self.config, self.app, self.plugins, storage) wallet = wizard.run_and_get_wallet() + wizard.terminate() if not wallet: return wallet.start_threads(self.daemon.network) diff --git a/gui/qt/installwizard.py b/gui/qt/installwizard.py index 26cb1d639..e8902d6b4 100644 --- a/gui/qt/installwizard.py +++ b/gui/qt/installwizard.py @@ -251,7 +251,6 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard): self.storage.upgrade() self.show_warning(_('Your wallet was upgraded successfully')) self.wallet = Wallet(self.storage) - self.terminate() return self.wallet action = self.storage.get_action() @@ -271,7 +270,6 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard): return self.wallet self.wallet = Wallet(self.storage) - self.terminate() return self.wallet