Browse Source

show n/a for mined transactions (and send to self) instead of empty field

0.8
Wladimir J. van der Laan 13 years ago
parent
commit
d8f5c59a59
  1. 6
      src/qt/transactiontablemodel.cpp

6
src/qt/transactiontablemodel.cpp

@ -391,10 +391,9 @@ QString TransactionTableModel::formatTxToAddress(const TransactionRecord *wtx, b @@ -391,10 +391,9 @@ QString TransactionTableModel::formatTxToAddress(const TransactionRecord *wtx, b
case TransactionRecord::SendToIP:
return QString::fromStdString(wtx->address);
case TransactionRecord::SendToSelf:
return QString();
case TransactionRecord::Generated:
default:
return QString();
return tr("(n/a)");
}
}
@ -410,6 +409,9 @@ QVariant TransactionTableModel::addressColor(const TransactionRecord *wtx) const @@ -410,6 +409,9 @@ QVariant TransactionTableModel::addressColor(const TransactionRecord *wtx) const
if(label.isEmpty())
return COLOR_BAREADDRESS;
} break;
case TransactionRecord::SendToSelf:
case TransactionRecord::Generated:
return COLOR_BAREADDRESS;
default:
break;
}

Loading…
Cancel
Save