mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug#335564: ensure book's SX list is consistent.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13693 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
974f037a11
commit
c2bf42960f
@ -1,3 +1,10 @@
|
||||
2006-03-23 Joshua Sled <jsled@asynchronous.org>
|
||||
|
||||
* src/gnome/dialog-scheduledxaction.c (delete_button_clicked):
|
||||
Bug#335564: ensure the book's SX List is as consistent as
|
||||
possible; specifically, before we free the SX (which now generates
|
||||
an event which walks the book's SX List).
|
||||
|
||||
2006-03-24 Andreas Köhler <andi5.py@gmx.net>
|
||||
|
||||
* src/register/register-gnome/gnucash-grid.c:
|
||||
|
@ -1890,6 +1890,8 @@ delete_button_clicked( GtkButton *b, gpointer d )
|
||||
|
||||
sx = (SchedXaction*)gtk_clist_get_row_data( cl, GPOINTER_TO_INT(sel->data));
|
||||
sxList = g_list_remove( sxList, (gpointer)sx );
|
||||
gnc_book_set_schedxactions( book, sxList );
|
||||
|
||||
foundP = g_hash_table_lookup_extended( sxd->sxData, sx,
|
||||
&unused,
|
||||
(gpointer*)p_sxri );
|
||||
@ -1900,7 +1902,6 @@ delete_button_clicked( GtkButton *b, gpointer d )
|
||||
g_hash_table_remove( sxd->sxData, sx );
|
||||
xaccSchedXactionFree( sx );
|
||||
}
|
||||
gnc_book_set_schedxactions( book, sxList );
|
||||
|
||||
gtk_clist_freeze( cl );
|
||||
/* Remove the selected and deleted rows from the clist in
|
||||
|
Loading…
Reference in New Issue
Block a user