Skip to content

Commit

Permalink
Fix color for PS transaction labels, fixes #874
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Jun 8, 2016
1 parent 36a2c4c commit 37bb138
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/qt/transactiontablemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -449,12 +449,18 @@ QVariant TransactionTableModel::addressColor(const TransactionRecord *wtx) const
case TransactionRecord::RecvWithAddress:
case TransactionRecord::SendToAddress:
case TransactionRecord::Generated:
case TransactionRecord::Darksent:
case TransactionRecord::RecvWithDarksend:
{
QString label = walletModel->getAddressTableModel()->labelForAddress(QString::fromStdString(wtx->address));
if(label.isEmpty())
return COLOR_BAREADDRESS;
} break;
case TransactionRecord::SendToSelf:
case TransactionRecord::DarksendCreateDenominations:
case TransactionRecord::DarksendDenominate:
case TransactionRecord::DarksendMakeCollaterals:
case TransactionRecord::DarksendCollateralPayment:
return COLOR_BAREADDRESS;
default:
break;
Expand Down

0 comments on commit 37bb138

Please sign in to comment.