mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
9b20cbd6d2
commit
fa0b6374c3
@ -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>
|
2006-02-02 Derek Atkins <derek@ihtfp.com>
|
||||||
|
|
||||||
* src/backend/file/io-gncxml-v2.c:
|
* src/backend/file/io-gncxml-v2.c:
|
||||||
|
@ -519,10 +519,11 @@ gnc_file_new (void)
|
|||||||
|
|
||||||
gnc_hook_run(HOOK_NEW_BOOK, NULL);
|
gnc_hook_run(HOOK_NEW_BOOK, NULL);
|
||||||
|
|
||||||
gnc_book_opened ();
|
|
||||||
|
|
||||||
gnc_engine_resume_events ();
|
gnc_engine_resume_events ();
|
||||||
gnc_gui_refresh_all ();
|
gnc_gui_refresh_all ();
|
||||||
|
|
||||||
|
/* Call this after re-enabling events. */
|
||||||
|
gnc_book_opened ();
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
@ -773,6 +774,7 @@ gnc_post_file_open (const char * filename)
|
|||||||
gnc_engine_resume_events ();
|
gnc_engine_resume_events ();
|
||||||
gnc_gui_refresh_all ();
|
gnc_gui_refresh_all ();
|
||||||
|
|
||||||
|
/* Call this after re-enabling events. */
|
||||||
gnc_book_opened ();
|
gnc_book_opened ();
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@ -782,8 +784,6 @@ gnc_post_file_open (const char * filename)
|
|||||||
/* close up the old file session (if any) */
|
/* close up the old file session (if any) */
|
||||||
qof_session_set_current_session(new_session);
|
qof_session_set_current_session(new_session);
|
||||||
|
|
||||||
gnc_book_opened ();
|
|
||||||
|
|
||||||
/* --------------- END CORE SESSION CODE -------------- */
|
/* --------------- END CORE SESSION CODE -------------- */
|
||||||
|
|
||||||
/* clean up old stuff, and then we're outta here. */
|
/* 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_engine_resume_events ();
|
||||||
gnc_gui_refresh_all ();
|
gnc_gui_refresh_all ();
|
||||||
|
|
||||||
|
/* Call this after re-enabling events. */
|
||||||
|
gnc_book_opened ();
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user