Browse Source

fix #6115: qt wallet>information was broken for imported wallets

master
SomberNight 5 years ago
parent
commit
b59c3294b2
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 4
      electrum/gui/qt/main_window.py

4
electrum/gui/qt/main_window.py

@ -2277,6 +2277,8 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):
grid.addWidget(lightning_b, 5, 2) grid.addWidget(lightning_b, 5, 2)
vbox.addLayout(grid) vbox.addLayout(grid)
labels_clayout = None
if self.wallet.is_deterministic(): if self.wallet.is_deterministic():
mpk_text = ShowQRTextEdit() mpk_text = ShowQRTextEdit()
mpk_text.setMaximumHeight(150) mpk_text.setMaximumHeight(150)
@ -2286,8 +2288,6 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):
mpk_text.setText(mpk_list[index]) mpk_text.setText(mpk_list[index])
mpk_text.repaint() # macOS hack for #4777 mpk_text.repaint() # macOS hack for #4777
# declare this value such that the hooks can later figure out what to do
labels_clayout = None
# only show the combobox in case multiple accounts are available # only show the combobox in case multiple accounts are available
if len(mpk_list) > 1: if len(mpk_list) > 1:
# only show the combobox if multiple master keys are defined # only show the combobox if multiple master keys are defined

Loading…
Cancel
Save