add missing log enable/disable

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8577 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2003-06-11 16:39:38 +00:00
parent 19c22ee34d
commit 7111ca86d0

View File

@ -522,11 +522,13 @@ gnc_session_load (GNCSession *session,
(err != ERR_SQL_DB_TOO_OLD))
{
/* Something broke, put back the old stuff */
xaccLogDisable();
gnc_book_set_backend (newbook, NULL);
gnc_book_destroy (newbook);
g_list_free (session->books);
session->books = oldbooks;
LEAVE("error from backend %d", gnc_session_get_error(session));
xaccLogEnable();
return;
}