aboutsummaryrefslogtreecommitdiff
path: root/src/qt/transactiontablemodel.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-08-03 20:52:18 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-08-03 20:52:18 +0200
commita99ac8d3f483d8a839ea3c4e0f400eaa64338acd (patch)
treec48625ca07979441b80db8da41fb1052fb79dc92 /src/qt/transactiontablemodel.cpp
parent2566b30c38cb1b1955118216c687a8a1063cc853 (diff)
show last few transactions on overview page
Diffstat (limited to 'src/qt/transactiontablemodel.cpp')
-rw-r--r--src/qt/transactiontablemodel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qt/transactiontablemodel.cpp b/src/qt/transactiontablemodel.cpp
index 1606df9f5a..458341c0f5 100644
--- a/src/qt/transactiontablemodel.cpp
+++ b/src/qt/transactiontablemodel.cpp
@@ -578,6 +578,10 @@ QVariant TransactionTableModel::data(const QModelIndex &index, int role) const
{
return llabs(rec->credit + rec->debit);
}
+ else if (role == AmountRole)
+ {
+ return rec->credit + rec->debit;
+ }
else if (role == TxIDRole)
{
return QString::fromStdString(rec->getTxID());