Changeset 1967 for trunk/eraser


Ignore:
Timestamp:
04/28/10 04:21:53 (5 years ago)
Author:
lowjoel
Message:

Forward-port from Eraser 6.0: Don't assign the schedule then modify the schedule; create the schedule before fully assigning to the task. Fixes #360.

Location:
trunk/eraser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser

  • trunk/eraser/Eraser/TaskPropertiesForm.cs

    r1802 r1967  
    8080            { 
    8181                RecurringSchedule schedule = new RecurringSchedule(); 
    82                 task.Schedule = schedule; 
    8382                schedule.ExecutionTime = new DateTime(1, 1, 1, scheduleTime.Value.Hour, 
    8483                    scheduleTime.Value.Minute, scheduleTime.Value.Second); 
     
    125124                else 
    126125                    throw new ArgumentException("No such scheduling method."); 
     126 
     127                task.Schedule = schedule; 
    127128            } 
    128129        } 
Note: See TracChangeset for help on using the changeset viewer.