commit bfcfb1f2408a8d32d0370558f58b74071315e38a
parent f33ee01e6456734ab723ee4444b7bbfb706b29be
Author: ThomasV <thomasv@electrum.org>
Date: Mon, 24 Jul 2017 18:35:33 +0200
wizard: make sure terminate is always called
Diffstat:
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git 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
@@ -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