Skip to content

Commit

Permalink
Merge #875: Fix color for PS transaction labels
Browse files Browse the repository at this point in the history
37bb138 Fix color for PS transaction labels, fixes #874
  • Loading branch information
UdjinM6 authored and schinzelh committed Jun 9, 2016
1 parent 36a2c4c commit de64f11
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 de64f11

Please sign in to comment.