commit cee208313494ed5978e7a6c62c3b13c9583c6c93
parent d430ec4bfc2d4ffb7b43ae63297fa9fa492aac01
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:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/electrum/gui/qt/history_list.py b/electrum/gui/qt/history_list.py
@@ -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):