mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
72c256ee81
commit
f94b27f915
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user