diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-08-04 04:40:01 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-08-04 04:40:01 +0200 |
commit | 186f3e2f0c21dc1cef68cb4b36e4bf65e2e7d7de (patch) | |
tree | 4b60750fb4f0929bec937d64f3810e64fd3524b3 /src | |
parent | 2ccd47596b14111f8be4984bde469adbc316db0d (diff) |
Clarity: change definition of "confirmed" to "counts towards balance"
Diffstat (limited to 'src')
-rw-r--r-- | src/qt/transactiontablemodel.cpp | 4 |
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) { |