gnucash maint: Don't create 2 new books for every new session.

John Ralls jralls at code.gnucash.org
Sun Sep 23 19:45:22 EDT 2018


Updated	 via  https://github.com/Gnucash/gnucash/commit/26a17987 (commit)
	from  https://github.com/Gnucash/gnucash/commit/1c5eb86d (commit)



commit 26a179872ddce7fc490a30e0c6bd041d09e2b8c7
Author: John Ralls <jralls at ceridwen.us>
Date:   Sun Sep 23 16:30:30 2018 -0700

    Don't create 2 new books for every new session.
    
    And don't ask to save a not-dirty or empty book, fixing
    Bug 794870 - If no book is opened, gnucash still asks if the user wants
    to save changes when opening a file



Summary of changes:
 gnucash/gnome-utils/gnc-main-window.c              |  2 ++
 .../backend/sql/test/utest-gnc-backend-sql.cpp     |  1 +
 libgnucash/engine/qofbook.cpp                      | 13 ++++++-
 libgnucash/engine/qofbook.h                        |  3 ++
 libgnucash/engine/qofsession.cpp                   | 41 ++++------------------
 libgnucash/engine/test/test-qofbook.c              |  5 +++
 libgnucash/engine/test/test-qofsession.cpp         | 18 +++++++---
 7 files changed, 44 insertions(+), 39 deletions(-)



More information about the gnucash-patches mailing list