Always invoke sync_price and sync_group if defined.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5682 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2001-10-18 09:30:42 +00:00
parent 4f7908c49c
commit 9feb646750

View File

@ -501,26 +501,25 @@ gnc_session_save (GNCSession *session)
if (be->sync_all)
{
(be->sync_all)(be, session->book);
if (save_error_handler(be, session))
return;
(be->sync_all)(be, session->book);
if (save_error_handler(be, session))
return;
}
else
{
if (be->sync_group && gnc_book_get_group (session->book))
{
(be->sync_group)(be, gnc_book_get_group (session->book));
if (save_error_handler(be, session))
return;
}
if (be->sync_price && gnc_book_get_pricedb (session->book))
{
(be->sync_price)(be, gnc_book_get_pricedb (session->book));
if(save_error_handler(be, session))
return;
}
if (be->sync_group && gnc_book_get_group (session->book))
{
(be->sync_group)(be, gnc_book_get_group (session->book));
if (save_error_handler(be, session))
return;
}
if (be->sync_price && gnc_book_get_pricedb (session->book))
{
(be->sync_price)(be, gnc_book_get_pricedb (session->book));
if(save_error_handler(be, session))
return;
}
return;
}