mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-12-02 05:29:20 -06:00
Do not create additional opening balance account on creating new gnucash file
Without this patch an additional opening balance account is created by the assistant-hierarchy.
This commit is contained in:
parent
f8dcd23023
commit
a2aca9da66
@ -1423,13 +1423,6 @@ on_finish (GtkAssistant *gtkassistant,
|
|||||||
ENTER (" ");
|
ENTER (" ");
|
||||||
com = gnc_currency_edit_get_currency (GNC_CURRENCY_EDIT(data->currency_selector));
|
com = gnc_currency_edit_get_currency (GNC_CURRENCY_EDIT(data->currency_selector));
|
||||||
|
|
||||||
if (data->our_account_tree)
|
|
||||||
{
|
|
||||||
gnc_account_foreach_descendant (data->our_account_tree,
|
|
||||||
(AccountCb)starting_balance_helper,
|
|
||||||
data);
|
|
||||||
}
|
|
||||||
|
|
||||||
// delete before we suspend GUI events, and then muck with the model,
|
// delete before we suspend GUI events, and then muck with the model,
|
||||||
// because the model doesn't seem to handle this correctly.
|
// because the model doesn't seem to handle this correctly.
|
||||||
if (data->initial_category)
|
if (data->initial_category)
|
||||||
@ -1452,6 +1445,13 @@ on_finish (GtkAssistant *gtkassistant,
|
|||||||
|
|
||||||
gnc_resume_gui_refresh ();
|
gnc_resume_gui_refresh ();
|
||||||
|
|
||||||
|
if (data->our_account_tree)
|
||||||
|
{
|
||||||
|
gnc_account_foreach_descendant (data->our_account_tree,
|
||||||
|
(AccountCb)starting_balance_helper,
|
||||||
|
data);
|
||||||
|
}
|
||||||
|
|
||||||
if (when_completed)
|
if (when_completed)
|
||||||
{
|
{
|
||||||
(*when_completed)();
|
(*when_completed)();
|
||||||
|
Loading…
Reference in New Issue
Block a user