cleanup unneeded array in history widget
This commit is contained in:
parent
3d2ab45b04
commit
24cd18e193
|
@ -56,7 +56,6 @@ class HistoryWidget(MyTreeWidget):
|
||||||
item = self.currentItem()
|
item = self.currentItem()
|
||||||
current_tx = item.data(0, Qt.UserRole).toString() if item else None
|
current_tx = item.data(0, Qt.UserRole).toString() if item else None
|
||||||
self.clear()
|
self.clear()
|
||||||
entries = []
|
|
||||||
for tx in h:
|
for tx in h:
|
||||||
tx_hash, conf, value, timestamp, balance = tx
|
tx_hash, conf, value, timestamp, balance = tx
|
||||||
if conf is None and timestamp is None:
|
if conf is None and timestamp is None:
|
||||||
|
@ -81,7 +80,6 @@ class HistoryWidget(MyTreeWidget):
|
||||||
self.insertTopLevelItem(0, item)
|
self.insertTopLevelItem(0, item)
|
||||||
if current_tx == tx_hash:
|
if current_tx == tx_hash:
|
||||||
self.setCurrentItem(item)
|
self.setCurrentItem(item)
|
||||||
entries.append((item, tx))
|
|
||||||
|
|
||||||
def update_item(self, tx_hash, conf, timestamp):
|
def update_item(self, tx_hash, conf, timestamp):
|
||||||
icon, time_str = self.get_icon(conf, timestamp)
|
icon, time_str = self.get_icon(conf, timestamp)
|
||||||
|
|
Loading…
Reference in New Issue