From ef9d1110d0bd11c6b01bcf246b06a96fa43925fe Mon Sep 17 00:00:00 2001 From: SomberNight Date: Fri, 2 Mar 2018 19:13:59 +0100 Subject: [PATCH] qt address list: remove dead code This role was in collision with SortableTreeWidgetItem.DataRole; and was otherwise not used anywhere. --- gui/qt/address_list.py | 1 - 1 file changed, 1 deletion(-) diff --git a/gui/qt/address_list.py b/gui/qt/address_list.py index b348dfcc1..104f367a8 100644 --- a/gui/qt/address_list.py +++ b/gui/qt/address_list.py @@ -124,7 +124,6 @@ class AddressList(MyTreeWidget): address_item.setBackground(0, ColorScheme.GREEN.as_color(True)) address_item.setFont(1, QFont(MONOSPACE_FONT)) address_item.setData(1, Qt.UserRole, address) - address_item.setData(1, Qt.UserRole+1, True) # label can be edited if self.wallet.is_frozen(address): address_item.setBackground(1, ColorScheme.BLUE.as_color(True)) if self.wallet.is_beyond_limit(address):