Skip to content

Commit

Permalink
Merge pull request spesmilo#286 from zebra-lucky/fix_qt_ps_dialog_key…
Browse files Browse the repository at this point in the history
…store_tab

fix qt/privatesend_dialog: add config to init calls
  • Loading branch information
akhavr committed Aug 16, 2021
2 parents 7e8eb84 + f7a96e6 commit d673120
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions electrum_dash/gui/qt/privatesend_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ def __init__(self, parent, seed, passphrase):
vbox = QVBoxLayout(self)
title = _('Your wallet generation seed is:')
slayout = SeedLayout(title=title, seed=seed, msg=True,
passphrase=passphrase)
passphrase=passphrase,
config=parent.mwin.config)
vbox.addLayout(slayout)
vbox.addLayout(Buttons(CloseButton(self)))

Expand Down Expand Up @@ -827,7 +828,7 @@ def add_ps_ks_tab(self):

grid.addWidget(QLabel(_('Master Public Key')), 0, 0)
mpk = psman.ps_keystore.get_master_public_key()
mpk_text = ShowQRTextEdit()
mpk_text = ShowQRTextEdit(config=self.mwin.config)
mpk_text.setMaximumHeight(150)
mpk_text.addCopyButton(self.mwin.app)
mpk_text.setText(mpk)
Expand Down Expand Up @@ -1076,7 +1077,8 @@ def initializePage(self):
self.parent.seed_text = \
mnemonic.Mnemonic('en').make_seed(seed_type='standard')
self.slayout = SeedLayout(seed=self.parent.seed_text, msg=True,
options=['ext'])
options=['ext'],
config=self.parent.mwin.config)
self.main_widget.setLayout(self.slayout)

def nextId(self):
Expand Down Expand Up @@ -1151,7 +1153,8 @@ def initializePage(self):
self.layout.addWidget(self.main_widget)

self.slayout = SeedLayout(is_seed=lambda x: x == self.parent.seed_text,
options=[], on_edit_cb=self.set_seed_ok)
options=[], on_edit_cb=self.set_seed_ok,
config=self.parent.mwin.config)
self.main_widget.setLayout(self.slayout)
self.seed_ok = self.slayout.is_seed(self.slayout.get_seed())

Expand Down Expand Up @@ -1219,7 +1222,8 @@ def initializePage(self):
self.layout.addWidget(self.main_widget)

self.slayout = SeedLayout(is_seed=mnemonic.is_seed,
options=['ext'], on_edit_cb=self.set_seed_ok)
options=['ext'], on_edit_cb=self.set_seed_ok,
config=self.parent.mwin.config)
self.main_widget.setLayout(self.slayout)
self.seed_ok = self.slayout.is_seed(self.slayout.get_seed())

Expand Down Expand Up @@ -1341,7 +1345,7 @@ class PSKeystoreWizard(QWizard):

def __init__(self, parent):
super(PSKeystoreWizard, self).__init__(parent)
self.gui = parent
self.mwin = parent
self.wallet = parent.wallet
self.seed_text = ''
self.is_ext = False
Expand Down

0 comments on commit d673120

Please sign in to comment.