mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* src/FileDialog.c (gncFileNew): lookup pref and do or don't run
new account list druid. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4506 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
#include "gnc-ui.h"
|
||||
#include "messages.h"
|
||||
#include "gnome/new-user-funs.h"
|
||||
#include "guile/global-options.h"
|
||||
|
||||
/* FIXME: this is wrong. This file should not need this include. */
|
||||
#include "gnc-book-p.h"
|
||||
@@ -263,13 +264,18 @@ gncFileNew (void)
|
||||
/* start a new book */
|
||||
gncGetCurrentBook ();
|
||||
|
||||
gnc_ui_show_new_user_window(0);
|
||||
|
||||
/* 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))); */
|
||||
if(gnc_lookup_boolean_option("General",
|
||||
"No account list setup on new file",
|
||||
1))
|
||||
{
|
||||
gh_call2(gh_eval_str("gnc:hook-run-danglers"),
|
||||
gh_eval_str("gnc:*book-opened-hook*"),
|
||||
gh_str02scm(gnc_book_get_url(current_book)));
|
||||
}
|
||||
else
|
||||
{
|
||||
gnc_ui_show_new_user_window(0);
|
||||
}
|
||||
|
||||
gnc_engine_resume_events ();
|
||||
gnc_gui_refresh_all ();
|
||||
|
||||
Reference in New Issue
Block a user