Merge pull request #998 from Diapolo/transactiontable
authorPieter Wuille <pieter.wuille@gmail.com>
Mon, 2 Apr 2012 14:19:22 +0000 (07:19 -0700)
committerPieter Wuille <pieter.wuille@gmail.com>
Mon, 2 Apr 2012 14:19:22 +0000 (07:19 -0700)
removed an ugly line break in a transaction tooltip

src/qt/transactiontablemodel.cpp

index b863546..480d4ac 100644 (file)
@@ -288,20 +288,19 @@ QString TransactionTableModel::formatTxStatus(const TransactionRecord *wtx) cons
     }
     if(wtx->type == TransactionRecord::Generated)
     {
-        status += "\n";
         switch(wtx->status.maturity)
         {
         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);
             break;
         case TransactionStatus::Mature:
             break;
         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;
         case TransactionStatus::NotAccepted:
-            status += tr("Generated but not accepted");
+            status += "\n" + tr("Generated but not accepted");
             break;
         }
     }