A few small fixes
This commit is contained in:
parent
ff39333d32
commit
3422d855c9
|
@ -79,9 +79,6 @@ class InstallWizard(WindowModalDialog, MessageBoxMixin, WizardBase):
|
||||||
wallet = super(InstallWizard, self).open_wallet(*args)
|
wallet = super(InstallWizard, self).open_wallet(*args)
|
||||||
except UserCancelled:
|
except UserCancelled:
|
||||||
self.print_error("wallet creation cancelled by user")
|
self.print_error("wallet creation cancelled by user")
|
||||||
except Exception as e:
|
|
||||||
traceback.print_exc(file=stdout)
|
|
||||||
self.show_error(str(e))
|
|
||||||
return wallet
|
return wallet
|
||||||
|
|
||||||
def remove_from_recently_open(self, filename):
|
def remove_from_recently_open(self, filename):
|
||||||
|
|
|
@ -6,6 +6,7 @@ from PyQt4.Qt import QVBoxLayout, QLabel, SIGNAL
|
||||||
from electrum_gui.qt.main_window import StatusBarButton
|
from electrum_gui.qt.main_window import StatusBarButton
|
||||||
from electrum_gui.qt.password_dialog import PasswordDialog
|
from electrum_gui.qt.password_dialog import PasswordDialog
|
||||||
from electrum_gui.qt.util import *
|
from electrum_gui.qt.util import *
|
||||||
|
from plugin import TrezorCompatiblePlugin
|
||||||
|
|
||||||
from electrum.i18n import _
|
from electrum.i18n import _
|
||||||
from electrum.plugins import hook
|
from electrum.plugins import hook
|
||||||
|
@ -69,10 +70,10 @@ class QtHandler(PrintError):
|
||||||
|
|
||||||
def passphrase_dialog(self, msg):
|
def passphrase_dialog(self, msg):
|
||||||
d = PasswordDialog(self.window_stack[-1], None, msg,
|
d = PasswordDialog(self.window_stack[-1], None, msg,
|
||||||
PasswordDialog.PW_PASSHPRASE)
|
PasswordDialog.PW_PASSPHRASE)
|
||||||
confirmed, p, passphrase = d.run()
|
confirmed, p, passphrase = d.run()
|
||||||
if confirmed:
|
if confirmed:
|
||||||
passphrase = TrezorPlugin.normalize_passphrase(passphrase)
|
passphrase = TrezorCompatiblePlugin.normalize_passphrase(passphrase)
|
||||||
self.passphrase = passphrase
|
self.passphrase = passphrase
|
||||||
self.done.set()
|
self.done.set()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue