1
0

Put open_wallet back as class method.

This commit is contained in:
Neil Booth
2016-01-13 20:55:51 +09:00
parent cb8bc4ec73
commit 4c9b224d4c
3 changed files with 69 additions and 65 deletions

View File

@@ -141,15 +141,15 @@ class InstallWizard(WindowModalDialog, WizardBase):
self.app.processEvents()
self.app.processEvents()
@classmethod
def open_wallet(self, *args):
'''Wrap the base wizard implementation with try/except blocks
to give a sensible error message to the user.'''
wallet = None
try:
wallet = super(InstallWizard, self).open_wallet(*args)
wallet = InstallWizard.open_wallet(self, *args)
except UserCancelled:
self.print_error("wallet creation cancelled by user")
self.accept()
return wallet
def remove_from_recently_open(self, filename):