mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
4f7908c49c
commit
9feb646750
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user