mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
set the dirty flag early and often
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8557 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -77,7 +77,13 @@ gnc_book_set_schedxactions( GNCBook *book, GList *newList )
|
||||
if ( book == NULL ) return;
|
||||
|
||||
old_list = gnc_book_get_data (book, GNC_SCHEDXACTIONS);
|
||||
if (old_list && old_list->sx_list == newList) return;
|
||||
if (old_list && old_list->sx_list == newList)
|
||||
{
|
||||
/* Assume the worst, that any 'set' means the data has
|
||||
* changed, and needs to be saved. */
|
||||
old_list->sx_notsaved = TRUE;
|
||||
return;
|
||||
}
|
||||
|
||||
new_list = g_new (SchedXactions, 1);
|
||||
new_list->book = book;
|
||||
|
||||
Reference in New Issue
Block a user