1
0

revert PR #1492. clear clipboard instead

This commit is contained in:
ThomasV
2015-10-31 11:47:42 +01:00
parent dae9352c18
commit 77d6ee74f9
4 changed files with 13 additions and 28 deletions

View File

@@ -64,8 +64,9 @@ class CosignWidget(QWidget):
class InstallWizard(QDialog):
def __init__(self, config, network, storage):
def __init__(self, app, config, network, storage):
QDialog.__init__(self)
self.app = app
self.config = config
self.network = network
self.storage = storage
@@ -416,12 +417,11 @@ class InstallWizard(QDialog):
return True
def show_seed(self, seed, sid):
vbox = seed_dialog.show_seed_box_msg(seed, sid, paranoid=True)
vbox = seed_dialog.show_seed_box_msg(seed, sid)
vbox.addLayout(Buttons(CancelButton(self), OkButton(self, _("Next"))))
self.set_layout(vbox)
return self.exec_()
def password_dialog(self):
msg = _("Please choose a password to encrypt your wallet keys.")+'\n'\
+_("Leave these fields empty if you want to disable encryption.")
@@ -506,6 +506,7 @@ class InstallWizard(QDialog):
seed = wallet.make_seed(lang)
if not self.show_seed(seed, None):
return
self.app.clipboard().clear()
if not self.verify_seed(seed, None):
return
password = self.password_dialog()