fix #2114: update utxo_list when freezing address

This commit is contained in:
ThomasV 2017-01-16 10:38:32 +01:00
parent 54dcca0787
commit a736dc3052
2 changed files with 2 additions and 1 deletions

View File

@ -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):

View File

@ -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):