gnucash maint: Multiple changes pushed
Robert Fewell
bobit at code.gnucash.org
Sat Sep 19 05:51:17 EDT 2020
Updated via https://github.com/Gnucash/gnucash/commit/edaa0d7e (commit)
via https://github.com/Gnucash/gnucash/commit/416e2342 (commit)
from https://github.com/Gnucash/gnucash/commit/0e9f368b (commit)
commit edaa0d7eeaa1c69b8aa8e49a51210f3cbfc3bf70
Author: Robert Fewell <14uBobIT at gmail.com>
Date: Fri Sep 18 12:44:03 2020 +0100
Fix some spaces on blank lines is source files
commit 416e234232b4db26861a1b2c19d5bf041f5a301b
Author: Robert Fewell <14uBobIT at gmail.com>
Date: Fri Sep 18 12:43:29 2020 +0100
Bug 797945 - Imap bayes conversion runs many times
When the Imap Editor is loaded, the bayes KVP entries are tested to see
if they are required to be converted to flat entries. This involves a
function that scans every account and if it finds entries that need
changing, the change is made and book property
GNC_FEATURE_GUID_FLAT_BAYESIAN is added so further scans are not made.
As the Imap Editor loops over the account list also, if there are no
bayes KVP changes then the conversion function gets called for every
account in the list. This can also happen to a lesser degree when doing
imports.
To stop this a flag is set once the convert to flat function has been
run so it only runs once and only lasts for the session.
Summary of changes:
gnucash/gnome-utils/gnc-file.c | 6 +++++-
gnucash/gnome/gnc-plugin-basic-commands.c | 4 ++++
libgnucash/engine/Account.cpp | 22 +++++++++++++++++-----
libgnucash/engine/Account.h | 13 +++++++++----
libgnucash/engine/test/gtest-import-map.cpp | 2 ++
5 files changed, 37 insertions(+), 10 deletions(-)
More information about the gnucash-patches
mailing list