Browse Source

qt custom block explorer: fix handling non-str config values

fixes https://github.com/spesmilo/electrum/issues/7421

The config key can have non-str values (see line 367).
patch-4
SomberNight 4 years ago
parent
commit
173225ae92
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/gui/qt/settings_dialog.py

2
electrum/gui/qt/settings_dialog.py

@ -345,7 +345,7 @@ class SettingsDialog(WindowModalDialog):
msg = _('Choose which online block explorer to use for functions that open a web browser')
block_ex_label = HelpLabel(_('Online Block Explorer') + ':', msg)
block_ex_combo = QComboBox()
block_ex_custom_e = QLineEdit(self.config.get('block_explorer_custom') or '')
block_ex_custom_e = QLineEdit(str(self.config.get('block_explorer_custom') or ''))
block_ex_combo.addItems(block_explorers)
block_ex_combo.setCurrentIndex(
block_ex_combo.findText(util.block_explorer(self.config) or BLOCK_EX_CUSTOM_ITEM))

Loading…
Cancel
Save