diff options
| author | Philip Kaufmann <[email protected]> | 2013-04-01 14:43:50 +0200 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2013-04-01 14:43:50 +0200 |
| commit | abf11f79ae2a9767778b36a2f9e0c4bc97624602 (patch) | |
| tree | 3537530880bb6484b20e897a88f852bf3acf339c /src/qt/walletmodel.cpp | |
| parent | Merge pull request #2433 from laanwj/2013_03_removetransactioncount (diff) | |
| download | discoin-abf11f79ae2a9767778b36a2f9e0c4bc97624602.tar.xz discoin-abf11f79ae2a9767778b36a2f9e0c4bc97624602.zip | |
fix "send coins" via context menu in address book
- the send coins context menu entry was not working anymore, because
a non current version of #2220 was merged onto current master
- also removes some unneeded spaces and adds a comment to
WalletModel::getNumTransactions()
Diffstat (limited to 'src/qt/walletmodel.cpp')
| -rw-r--r-- | src/qt/walletmodel.cpp | 2 |
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; |