tqt history list: fix UnboundLocalError when searching - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit cee208313494ed5978e7a6c62c3b13c9583c6c93 DIR parent d430ec4bfc2d4ffb7b43ae63297fa9fa492aac01 HTML Author: SomberNight <somber.night@protonmail.com> Date: Wed, 27 Nov 2019 04:30:38 +0100 qt history list: fix UnboundLocalError when searching closes #5801 Diffstat: M electrum/gui/qt/history_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/electrum/gui/qt/history_list.py b/electrum/gui/qt/history_list.py t@@ -235,7 +235,7 @@ class HistoryModel(QAbstractItemModel, Logger): cg = tx_item['capital_gain'].value return QVariant(self.parent.fx.format_fiat(cg)) elif col == HistoryColumns.TXID: - return QVariant(tx_hash) + return QVariant(tx_hash) if not is_lightning else QVariant('') return QVariant() def parent(self, index: QModelIndex):