aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-08-04 04:40:01 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-08-04 04:40:01 +0200
commit186f3e2f0c21dc1cef68cb4b36e4bf65e2e7d7de (patch)
tree4b60750fb4f0929bec937d64f3810e64fd3524b3 /src/qt
parent2ccd47596b14111f8be4984bde469adbc316db0d (diff)
Clarity: change definition of "confirmed" to "counts towards balance"
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/transactiontablemodel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qt/transactiontablemodel.cpp b/src/qt/transactiontablemodel.cpp
index 458341c0f5..988a91ee90 100644
--- a/src/qt/transactiontablemodel.cpp
+++ b/src/qt/transactiontablemodel.cpp
@@ -588,7 +588,9 @@ QVariant TransactionTableModel::data(const QModelIndex &index, int role) const
}
else if (role == ConfirmedRole)
{
- return rec->status.status == TransactionStatus::HaveConfirmations;
+ // Return True if transaction counts for balance
+ return rec->status.confirmed && !(rec->type == TransactionRecord::Generated &&
+ rec->status.maturity != TransactionStatus::Mature);
}
else if (role == FormattedAmountRole)
{