From 173225ae92e1fa1a1926d485f3d61f3c498fab9b Mon Sep 17 00:00:00 2001 From: SomberNight Date: Tue, 20 Jul 2021 16:54:40 +0200 Subject: [PATCH] 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). --- electrum/gui/qt/settings_dialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/gui/qt/settings_dialog.py b/electrum/gui/qt/settings_dialog.py index 1109ca16b..b0152ed39 100644 --- a/electrum/gui/qt/settings_dialog.py +++ b/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))