Prevent account hierarchy assistant from opening a second account hierarchy upon completion

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23600 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens 2013-12-23 20:32:52 +00:00
parent 72c256ee81
commit f94b27f915
2 changed files with 2 additions and 9 deletions

View File

@ -1160,11 +1160,8 @@ gnc_ui_hierarchy_assistant_with_callback(gboolean use_defaults,
}
static void
create_account_page(void)
after_assistant(void)
{
GncPluginPage *page;
page = gnc_plugin_page_account_tree_new();
gnc_main_window_open_page(NULL, page);
qof_book_mark_session_dirty(gnc_get_current_book());
gnc_ui_file_access_for_save_as();
}
@ -1174,7 +1171,7 @@ gnc_ui_hierarchy_assistant_hook (void)
{
if (gnc_prefs_get_bool(GNC_PREFS_GROUP, GNC_PREF_SHOW_ON_NEW_FILE))
{
gnc_ui_hierarchy_assistant_with_callback(TRUE, create_account_page);
gnc_ui_hierarchy_assistant_with_callback(TRUE, after_assistant);
}
}

View File

@ -63,13 +63,9 @@ gnc_set_first_startup (gboolean first_startup)
static void
after_hierarchy_assistant(void)
{
GncPluginPage *page;
gncp_new_user_finish ();
gnc_set_first_startup (FALSE);
page = gnc_plugin_page_account_tree_new();
gnc_main_window_open_page(NULL, page);
qof_book_mark_session_dirty(gnc_get_current_book());
gnc_ui_file_access_for_save_as();
}