Browse Source

qt history list: fix UnboundLocalError when searching

closes #5801
hard-fail-on-bad-server-string
SomberNight 5 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
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):

Loading…
Cancel
Save