commit 533bd97a05591d040caf7d1ca0132c7c28783e99
parent c8f82c71c90d7335d6aaaf652a6b93be96f921cc
Author: SomberNight <somber.night@protonmail.com>
Date: Tue, 18 Sep 2018 03:19:24 +0200
qt HistoryList.update_item: perf optimisation
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/electrum/gui/qt/history_list.py b/electrum/gui/qt/history_list.py
@@ -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)