r21841 - gnucash/branches/2.4/src - [r21832][Bug 666329] - Empty database after a little while

John Ralls jralls at code.gnucash.org
Tue Jan 10 18:29:06 EST 2012


Author: jralls
Date: 2012-01-10 18:29:05 -0500 (Tue, 10 Jan 2012)
New Revision: 21841
Trac: http://svn.gnucash.org/trac/changeset/21841

Modified:
   gnucash/branches/2.4/src/backend/sql/gnc-backend-sql.c
   gnucash/branches/2.4/src/backend/xml/gnc-backend-xml.c
   gnucash/branches/2.4/src/backend/xml/io-gncxml-v2.c
   gnucash/branches/2.4/src/gnome-utils/gnc-file.c
   gnucash/branches/2.4/src/gnome-utils/gnc-main-window.c
   gnucash/branches/2.4/src/import-export/aqbanking/gnc-ab-kvp.c
   gnucash/branches/2.4/src/libqof/qof/qofbook.c
   gnucash/branches/2.4/src/libqof/qof/qofbook.h
Log:
[r21832][Bug 666329] - Empty database after a little while

Separate the two uses of QofBook::dirty -- indicating that the book object
itself has been edited and indicating that some object in the dataset has
been changed -- into two separate variables with separate getters & setters.

The latter purpose, indicating that some object has been changed, is moved
to a new member variable of QofBook, session_dirty. Its new setter
qof_book_mark_session_dirty() and canceler qof_book_mark_session_saved()
are called only from the xml backend or gnc-autosave(). Its tester,
qof_book_session_not_saved() is used to check for the need to autosave
and to activate FileSaveAction.



More information about the gnucash-patches mailing list