From 533bd97a05591d040caf7d1ca0132c7c28783e99 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Tue, 18 Sep 2018 03:19:24 +0200 Subject: [PATCH] qt HistoryList.update_item: perf optimisation --- electrum/gui/qt/history_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/gui/qt/history_list.py b/electrum/gui/qt/history_list.py index 645388480..1b00af78b 100644 --- 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)