aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletmodel.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2013-04-01 07:44:03 -0700
committerWladimir J. van der Laan <[email protected]>2013-04-01 07:44:03 -0700
commit300f747ec33181a5cbac0db1c2a07f122aba358a (patch)
tree93c9d562fadc092ce908b5578655e39721900565 /src/qt/walletmodel.cpp
parentMerge pull request #2440 from Diapolo/Qt_fix_debug_window (diff)
parentfix "send coins" via context menu in address book (diff)
downloaddiscoin-300f747ec33181a5cbac0db1c2a07f122aba358a.tar.xz
discoin-300f747ec33181a5cbac0db1c2a07f122aba358a.zip
Merge pull request #2437 from Diapolo/Qt_fixes
fix "send coins" via context menu in address book
Diffstat (limited to 'src/qt/walletmodel.cpp')
-rw-r--r--src/qt/walletmodel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp
index 9d5a2c04f..20535a451 100644
--- a/src/qt/walletmodel.cpp
+++ b/src/qt/walletmodel.cpp
@@ -56,6 +56,8 @@ int WalletModel::getNumTransactions() const
int numTransactions = 0;
{
LOCK(wallet->cs_wallet);
+ // the size of mapWallet contains the number of unique transaction IDs
+ // (e.g. payments to yourself generate 2 transactions, but both share the same transaction ID)
numTransactions = wallet->mapWallet.size();
}
return numTransactions;