aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-07-11 21:01:53 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-07-11 21:01:53 +0200
commit4a843976e094eee9eb8528f7828f389bd31c462e (patch)
tree8627b9075362b8d7fa6f4ad7eae6968dea41e253 /src/qt
parentdf5ccbd2b2c72039f1e0e69fc51957f7c2d6068d (diff)
also show balloon on sent transaction, to notify when coins sent
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/bitcoingui.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp
index 144bb22a8a..0c66bd4ca7 100644
--- a/src/qt/bitcoingui.cpp
+++ b/src/qt/bitcoingui.cpp
@@ -399,7 +399,7 @@ void BitcoinGUI::incomingTransaction(const QModelIndex & parent, int start, int
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 @@ void BitcoinGUI::incomingTransaction(const QModelIndex & parent, int start, int
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" +