Summary: | Ledger view remains disabled after switching to a different file | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | Thomas Baumgart <tbaumgart> |
Component: | general | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | SVN | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Thomas Baumgart
2010-10-28 09:09:25 UTC
I will take a look at this since I'm sure this is caused by revision 1182460 SVN commit 1190712 by conet: BUG: 255476 Ledger view remains disabled after switching to a different file. This was caused by the fact that the accounts model was not loaded by the time the account selector in the ledger was being used to set the visible account. This means that at that time the visible account could not be set. After the accounts model gets loaded nobody tried to set the ledger's visible account which is correct. Fix this problem by making sure that the accounts model is loaded by the time the ledger's visible account is being set. Do this by activating the "load on idle" feature only if there is a real account loaded not after the first time like it was done before. M +9 -1 accountsmodel.cpp M +1 -1 accountsmodel.h M +2 -3 models.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1190712 SVN commit 1193387 by conet: BUG: 255476 Ledger view remains disabled after switching to a different file. This was caused by the fact that the accounts model was not loaded by the time the account selector in the ledger was being used to set the visible account. This means that at that time the visible account could not be set. After the accounts model gets loaded nobody tried to set the ledger's visible account which is correct. Fix this problem by making sure that the accounts model is loaded by the time the ledger's visible account is being set. Do this by activating the "load on idle" feature only if there is a real account loaded not after the first time like it was done before. + A small step in improving the performance issue. Load the accounts model on idle instead of when dataChanged() is emitted when it's possible. Backport to the stable branch. M +9 -1 accountsmodel.cpp M +2 -2 accountsmodel.h M +19 -2 models.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1193387 |