From a736dc305295f96aa982b706a478b39ca65d6383 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Mon, 16 Jan 2017 10:38:32 +0100 Subject: [PATCH] fix #2114: update utxo_list when freezing address --- gui/qt/main_window.py | 1 + gui/qt/utxo_list.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index 5f5f19453..52a551eb5 100644 --- a/gui/qt/main_window.py +++ b/gui/qt/main_window.py @@ -1478,6 +1478,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): def set_frozen_state(self, addrs, freeze): self.wallet.set_frozen_state(addrs, freeze) self.address_list.update() + self.utxo_list.update() self.update_fee() def create_list_tab(self, l): diff --git a/gui/qt/utxo_list.py b/gui/qt/utxo_list.py index c9cefbb35..f5ee8c514 100644 --- a/gui/qt/utxo_list.py +++ b/gui/qt/utxo_list.py @@ -51,7 +51,7 @@ class UTXOList(MyTreeWidget): utxo_item.setFont(1, QFont(MONOSPACE_FONT)) utxo_item.setData(0, Qt.UserRole, name) if self.wallet.is_frozen(address): - utxo_item.setBackgroundColor(0, QColor('lightblue')) + utxo_item.setBackgroundColor(1, QColor('lightblue')) self.addChild(utxo_item) def create_menu(self, position):