Browse Source

qt history list: fix UnboundLocalError when searching

closes #5801
master
SomberNight 6 years ago
parent
commit
cee2083134
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/gui/qt/history_list.py

2
electrum/gui/qt/history_list.py

@ -235,7 +235,7 @@ class HistoryModel(QAbstractItemModel, Logger):
cg = tx_item['capital_gain'].value cg = tx_item['capital_gain'].value
return QVariant(self.parent.fx.format_fiat(cg)) return QVariant(self.parent.fx.format_fiat(cg))
elif col == HistoryColumns.TXID: elif col == HistoryColumns.TXID:
return QVariant(tx_hash) return QVariant(tx_hash) if not is_lightning else QVariant('')
return QVariant() return QVariant()
def parent(self, index: QModelIndex): def parent(self, index: QModelIndex):

Loading…
Cancel
Save