Fix specious datafile dirtying in SLR dialog.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15466 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Joshua Sled
2007-01-30 01:09:18 +00:00
parent cb02cab345
commit 909015dcbf
2 changed files with 7 additions and 2 deletions

View File

@@ -1053,6 +1053,12 @@ gnc_sx_instance_model_effect_change(GncSxInstanceModel *model,
gint instance_count = 0;
gint remain_occur_count = 0;
// If there are no instances, then skip; specifically, skip
// re-setting SchedXaction fields, which will dirty the book
// spuriously.
if (g_list_length(instances->list) == 0)
continue;
last_occur_date = xaccSchedXactionGetLastOccurDate(instances->sx);
instance_count = gnc_sx_get_instance_count(instances->sx, NULL);
remain_occur_count = xaccSchedXactionGetRemOccur(instances->sx);

View File

@@ -48,6 +48,7 @@ TODO
- [ ] check variables-unbound logic
- [ ] verify summary counts
- [ ] check "since last run" states
- [ ] specious datafile dirty-ing?
- [ ] -autocreate[, ±notify]
- [ ] +autocreate, -notify
- [ ] +autocreate, +notify
@@ -57,8 +58,6 @@ TODO
- [?] Expired scheduled transactions never run - <http://bugzilla.gnome.org/show_bug.cgi?id=375892>
- bugs
- [ ] specious datafile dirty-ing?
- [ ] with SLR open (with instances), add variables to SX; only newly-created instances will have appropriate variable tables.
! - [ ] crash with two sx lists open and SX mutation