mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
19c22ee34d
commit
7111ca86d0
@ -522,11 +522,13 @@ gnc_session_load (GNCSession *session,
|
|||||||
(err != ERR_SQL_DB_TOO_OLD))
|
(err != ERR_SQL_DB_TOO_OLD))
|
||||||
{
|
{
|
||||||
/* Something broke, put back the old stuff */
|
/* Something broke, put back the old stuff */
|
||||||
|
xaccLogDisable();
|
||||||
gnc_book_set_backend (newbook, NULL);
|
gnc_book_set_backend (newbook, NULL);
|
||||||
gnc_book_destroy (newbook);
|
gnc_book_destroy (newbook);
|
||||||
g_list_free (session->books);
|
g_list_free (session->books);
|
||||||
session->books = oldbooks;
|
session->books = oldbooks;
|
||||||
LEAVE("error from backend %d", gnc_session_get_error(session));
|
LEAVE("error from backend %d", gnc_session_get_error(session));
|
||||||
|
xaccLogEnable();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user