* src/FileDialog.c (gncFileNew): create new user dialog on new

file new.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4245 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
James LewisMoss 2001-05-21 01:58:15 +00:00
parent 88b98dd121
commit 6175dadd9f

View File

@ -37,6 +37,7 @@
#include "gnc-event.h"
#include "gnc-ui.h"
#include "messages.h"
#include "gnome/new-user-funs.h"
/* FIXME: this is wrong. This file should not need this include. */
#include "gnc-book-p.h"
@ -262,9 +263,13 @@ gncFileNew (void)
/* start a new book */
gncGetCurrentBook ();
gh_call2(gh_eval_str("gnc:hook-run-danglers"),
gh_eval_str("gnc:*book-opened-hook*"),
gh_str02scm(gnc_book_get_url(current_book)));
gnc_ui_show_new_user_window();
/* leave this here for the moment. Will add an option in which case
this needs to run */
/* gh_call2(gh_eval_str("gnc:hook-run-danglers"), */
/* gh_eval_str("gnc:*book-opened-hook*"), */
/* gh_str02scm(gnc_book_get_url(current_book))); */
gnc_engine_resume_events ();
gnc_gui_refresh_all ();