mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* gnome-utils/dialog-account.c: change the BeginEdit() call on the
(temporary) top-level account, so the SQL backend doesn't hate us for committing and account without a commodity. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7435 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
25f3ffddb9
commit
695d717094
@ -7,6 +7,10 @@
|
|||||||
|
|
||||||
* business/business-core/*.c: add begin/commit edit calls in every 'set'
|
* business/business-core/*.c: add begin/commit edit calls in every 'set'
|
||||||
function. Fixes 96855.
|
function. Fixes 96855.
|
||||||
|
|
||||||
|
* gnome-utils/dialog-account.c: change the BeginEdit() call on the
|
||||||
|
(temporary) top-level account, so the SQL backend doesn't hate us
|
||||||
|
for committing and account without a commodity.
|
||||||
|
|
||||||
2002-11-03 Christian Stimming <stimming@tuhh.de>
|
2002-11-03 Christian Stimming <stimming@tuhh.de>
|
||||||
|
|
||||||
|
@ -1104,7 +1104,6 @@ gnc_account_window_destroy_cb (GtkObject *object, gpointer data)
|
|||||||
|
|
||||||
gnc_unregister_gui_component (aw->component_id);
|
gnc_unregister_gui_component (aw->component_id);
|
||||||
|
|
||||||
xaccAccountBeginEdit (aw->top_level_account);
|
|
||||||
xaccAccountDestroy (aw->top_level_account);
|
xaccAccountDestroy (aw->top_level_account);
|
||||||
aw->top_level_account = NULL;
|
aw->top_level_account = NULL;
|
||||||
|
|
||||||
@ -1509,6 +1508,7 @@ gnc_account_window_create(AccountWindow *aw)
|
|||||||
box = glade_xml_get_widget (xml, "parent_scroll");
|
box = glade_xml_get_widget (xml, "parent_scroll");
|
||||||
|
|
||||||
aw->top_level_account = xaccMallocAccount(gnc_get_current_book ());
|
aw->top_level_account = xaccMallocAccount(gnc_get_current_book ());
|
||||||
|
xaccAccountBeginEdit (aw->top_level_account);
|
||||||
xaccAccountSetName(aw->top_level_account, _("New top level account"));
|
xaccAccountSetName(aw->top_level_account, _("New top level account"));
|
||||||
|
|
||||||
aw->parent_tree = gnc_account_tree_new_with_root(aw->top_level_account);
|
aw->parent_tree = gnc_account_tree_new_with_root(aw->top_level_account);
|
||||||
|
Loading…
Reference in New Issue
Block a user