[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/office/kmymoney/kmymoney/views
From: Alvaro Soliverez <asoliverez () gmail ! com>
Date: 2010-08-20 1:06:16
Message-ID: 20100820010616.90928AC855 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1165701 by asoliverez:
Only get valid transaction items from the payee register.
If confirmed that it works in all cases, will backport to stable branch.
BUG:248448
M +5 -1 kpayeesview.cpp
--- trunk/extragear/office/kmymoney/kmymoney/views/kpayeesview.cpp #1165700:1165701
@@ -225,8 +225,10 @@
KMyMoneyRegister::RegisterItem* item = m_register->firstItem();
while (item) {
+ //only walk through selectable items. eg. transactions and not group markers
+ if(item->isSelectable()) {
KMyMoneyRegister::Transaction* t = dynamic_cast<KMyMoneyRegister::Transaction*>(item);
- item = item->nextItem();
+
MyMoneySplit s = t->transaction().splitByPayee(m_payee.id());
const MyMoneyAccount& acc = file->account(s.accountId());
@@ -243,6 +245,8 @@
}
}
}
+ item = item->nextItem();
+ }
QMap<QString, int>::Iterator most_frequent, iter;
most_frequent = account_count.begin();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic