Ignore:
Timestamp:
2/3/2010 3:37:13 AM (4 years ago)
Author:
lowjoel
Message:

Forward ported changes from trunk to r1743

Location:
branches/eraser6/CodeReview
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/CodeReview

  • branches/eraser6/CodeReview/Eraser/SchedulerPanel.cs

    r1701 r1745  
    4545            InitializeComponent(); 
    4646            Theming.ApplyTheme(schedulerDefaultMenu); 
    47             CreateHandle(); 
     47            if (!IsHandleCreated) 
     48                CreateHandle(); 
    4849 
    4950            //Populate the scheduler list-view with the current task list 
     
    187188        void task_TaskStarted(object sender, TaskEventArgs e) 
    188189        { 
    189             if (scheduler.InvokeRequired) 
     190            if (InvokeRequired) 
    190191            { 
    191192                Invoke((EventHandler<TaskEventArgs>)task_TaskStarted, sender, e); 
     
    213214            //Make sure we handle the event in the main thread as this requires 
    214215            //GUI calls. 
    215             if (scheduler.InvokeRequired) 
     216            if (InvokeRequired) 
    216217            { 
    217218                Invoke((EventHandler<ProgressChangedEventArgs>)task_ProgressChanged, sender, e); 
Note: See TracChangeset for help on using the changeset viewer.