qt history list: fix UnboundLocalError when searching

closes #5801
This commit is contained in:
SomberNight 2019-11-27 04:30:38 +01:00
parent d430ec4bfc
commit cee2083134
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -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):