changeset 1174:599cda298163 draft

also show balloon on sent transaction, to notify when coins sent
author Wladimir J. van der Laan <laanwj@gmail.com>
date Mon, 11 Jul 2011 21:01:53 +0200
parents 2f76dc263dfe
children 432dc400ef33
files src/qt/bitcoingui.cpp
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/qt/bitcoingui.cpp
+++ b/src/qt/bitcoingui.cpp
@@ -399,7 +399,7 @@
     TransactionTableModel *ttm = walletModel->getTransactionTableModel();
     qint64 amount = ttm->index(start, TransactionTableModel::Amount, parent)
                     .data(Qt::EditRole).toULongLong();
-    if(amount>0 && !clientModel->inInitialBlockDownload())
+    if(!clientModel->inInitialBlockDownload())
     {
         // On incoming transaction, make an info balloon
         // Unless the initial block download is in progress, to prevent balloon-spam
@@ -410,7 +410,8 @@
         QString address = ttm->index(start, TransactionTableModel::ToAddress, parent)
                         .data().toString();
 
-        trayIcon->showMessage(tr("Incoming transaction"),
+        trayIcon->showMessage((amount)<0 ? tr("Sent transaction") :
+                                           tr("Incoming transaction"),
                               tr("Date: ") + date + "\n" +
                               tr("Amount: ") + GUIUtil::formatMoney(amount, true) + "\n" +
                               tr("Type: ") + type + "\n" +