1
0

MessageBoxMixin-related cleanup

This commit is contained in:
Neil Booth
2015-12-23 20:05:09 +09:00
parent 8bcd132423
commit 0ecf2565ce
3 changed files with 26 additions and 58 deletions

View File

@@ -64,7 +64,7 @@ class OpenFileEventFilter(QObject):
class ElectrumGui:
class ElectrumGui(MessageBoxMixin):
def __init__(self, config, network, plugins):
set_language(config.get('language'))
@@ -134,7 +134,7 @@ class ElectrumGui:
try:
storage = WalletStorage(filename)
except Exception as e:
WindowModalDialog.warning(None, _('Error'), str(e))
self.show_error(str(e))
return
if not storage.file_exists:
recent = self.config.get('recently_open', [])
@@ -147,7 +147,7 @@ class ElectrumGui:
wallet = Wallet(storage)
except BaseException as e:
traceback.print_exc(file=sys.stdout)
WindowModalDialog.warning(None, _('Warning'), str(e))
self.show_warning(str(e))
return
action = wallet.get_action()
# run wizard