Browse Source

wizard: make sure terminate is always called

2.9.x
ThomasV 8 years ago
parent
commit
bfcfb1f240
  1. 1
      gui/qt/__init__.py
  2. 2
      gui/qt/installwizard.py

1
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)

2
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

Loading…
Cancel
Save