qt HistoryList.update_item: perf optimisation

This commit is contained in:
SomberNight 2018-09-18 03:19:24 +02:00
parent c8f82c71c9
commit 533bd97a05
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9

View File

@ -316,7 +316,7 @@ class HistoryList(MyTreeWidget, AcceptFileDragDrop):
conf = tx_mined_status.conf
status, status_str = self.wallet.get_tx_status(tx_hash, tx_mined_status)
icon = self.icon_cache.get(":icons/" + TX_ICONS[status])
items = self.findItems(tx_hash, Qt.UserRole|Qt.MatchContains|Qt.MatchRecursive, column=1)
items = self.findItems(tx_hash, Qt.MatchExactly, column=1)
if items:
item = items[0]
item.setIcon(0, icon)