mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05: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:
+16
-17
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user