1
0

redo default labels with incoming tx outputs

This commit is contained in:
ThomasV
2015-04-04 15:55:28 +02:00
parent 21ccb1e82d
commit 0a7b585b6c
2 changed files with 10 additions and 3 deletions

View File

@@ -676,8 +676,6 @@ class ElectrumWindow(QMainWindow):
v_str = self.format_amount(value, True, whitespaces=True)
balance_str = self.format_amount(balance, whitespaces=True)
label, is_default_label = self.wallet.get_label(tx_hash)
if is_default_label:
label = ''
item = QTreeWidgetItem( [ '', time_str, label, v_str, balance_str] )
item.setFont(2, QFont(MONOSPACE_FONT))
item.setFont(3, QFont(MONOSPACE_FONT))
@@ -687,7 +685,7 @@ class ElectrumWindow(QMainWindow):
if tx_hash:
item.setData(0, Qt.UserRole, tx_hash)
if is_default_label:
item.setForeground(2, QBrush(QColor('lightgrey')))
item.setForeground(2, QBrush(QColor('grey')))
item.setIcon(0, icon)
l.insertTopLevelItem(0, item)
if current_tx == tx_hash: