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:
Linas Vepstas
2003-06-10 19:31:53 +00:00
parent ee88926021
commit ef1626a3db

View File

@@ -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;