Merge pull request #998 from Diapolo/transactiontable

removed an ugly line break in a transaction tooltip
This commit is contained in:
Pieter Wuille 2012-04-02 07:19:22 -07:00
commit 91c5132ab5

View file

@ -288,20 +288,19 @@ QString TransactionTableModel::formatTxStatus(const TransactionRecord *wtx) cons
} }
if(wtx->type == TransactionRecord::Generated) if(wtx->type == TransactionRecord::Generated)
{ {
status += "\n";
switch(wtx->status.maturity) switch(wtx->status.maturity)
{ {
case TransactionStatus::Immature: case TransactionStatus::Immature:
status += tr("Mined balance will be available in %n more blocks", "", status += "\n" + tr("Mined balance will be available in %n more blocks", "",
wtx->status.matures_in); wtx->status.matures_in);
break; break;
case TransactionStatus::Mature: case TransactionStatus::Mature:
break; break;
case TransactionStatus::MaturesWarning: case TransactionStatus::MaturesWarning:
status += tr("This block was not received by any other nodes and will probably not be accepted!"); status += "\n" + tr("This block was not received by any other nodes and will probably not be accepted!");
break; break;
case TransactionStatus::NotAccepted: case TransactionStatus::NotAccepted:
status += tr("Generated but not accepted"); status += "\n" + tr("Generated but not accepted");
break; break;
} }
} }