fix: crash in QT InstallWizard if wallet path results in IOError and user still clicks Next (see #3404)
This commit is contained in:
parent
e4c77d9156
commit
80f99b68e0
|
@ -187,8 +187,10 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard):
|
||||||
path = os.path.join(wallet_folder, filename)
|
path = os.path.join(wallet_folder, filename)
|
||||||
try:
|
try:
|
||||||
self.storage = WalletStorage(path, manual_upgrades=True)
|
self.storage = WalletStorage(path, manual_upgrades=True)
|
||||||
|
self.next_button.setEnabled(True)
|
||||||
except IOError:
|
except IOError:
|
||||||
self.storage = None
|
self.storage = None
|
||||||
|
self.next_button.setEnabled(False)
|
||||||
if self.storage:
|
if self.storage:
|
||||||
if not self.storage.file_exists():
|
if not self.storage.file_exists():
|
||||||
msg =_("This file does not exist.") + '\n' \
|
msg =_("This file does not exist.") + '\n' \
|
||||||
|
|
Loading…
Reference in New Issue