Changeset 1667


Ignore:
Timestamp:
1/25/2010 3:46:49 AM (5 years ago)
Author:
lowjoel
Message:

Forward port from Eraser 6.0: Fixed crash when task is edited and the task is immediately run: editing the task drops the Task property in ErasureTarget? objects. This fix will restore the Task property by removing and re-adding the target upon edit.

Location:
trunk/eraser6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser6

  • trunk/eraser6/Eraser/TaskPropertiesForm.cs

    r1360 r1667  
    238238                { 
    239239                    ErasureTarget target = form.Target; 
    240                     task.Targets[item.Index] = target; 
     240                    task.Targets.RemoveAt(item.Index); 
     241                    task.Targets.Insert(item.Index, target); 
     242 
     243                    item.Tag = target; 
    241244                    item.Text = target.UIText; 
    242245                    item.SubItems[1].Text = target.MethodDefined ? target.Method.Name : S._("(default)"); 
Note: See TracChangeset for help on using the changeset viewer.