Re-enable events before processing the book-opened hook. Solves some

strange problems in the account


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13080 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2006-02-03 00:24:26 +00:00
parent 9b20cbd6d2
commit fa0b6374c3
2 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2006-02-02 David Hampton <hampton@employees.org>
* src/gnome-utils/gnc-file.c: Re-enable events before processing
the book-opened hook. Solves some strange problems in the account
tree which were caused by the Orphan account being created during
the callbacks, but no event being sent to the account tree model.
2006-02-02 Derek Atkins <derek@ihtfp.com>
* src/backend/file/io-gncxml-v2.c:

View File

@ -519,10 +519,11 @@ gnc_file_new (void)
gnc_hook_run(HOOK_NEW_BOOK, NULL);
gnc_book_opened ();
gnc_engine_resume_events ();
gnc_gui_refresh_all ();
/* Call this after re-enabling events. */
gnc_book_opened ();
}
gboolean
@ -773,6 +774,7 @@ gnc_post_file_open (const char * filename)
gnc_engine_resume_events ();
gnc_gui_refresh_all ();
/* Call this after re-enabling events. */
gnc_book_opened ();
return FALSE;
@ -782,8 +784,6 @@ gnc_post_file_open (const char * filename)
/* close up the old file session (if any) */
qof_session_set_current_session(new_session);
gnc_book_opened ();
/* --------------- END CORE SESSION CODE -------------- */
/* clean up old stuff, and then we're outta here. */
@ -794,6 +794,9 @@ gnc_post_file_open (const char * filename)
gnc_engine_resume_events ();
gnc_gui_refresh_all ();
/* Call this after re-enabling events. */
gnc_book_opened ();
return TRUE;
}