Changeset 1735


Ignore:
Timestamp:
2/3/2010 12:24:01 AM (5 years ago)
Author:
lowjoel
Message:

Slightly better fix than r1734.

Location:
branches/eraser6/6.0/Eraser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/6.0/Eraser/MainForm.cs

    r1734 r1735  
    4545        public MainForm() 
    4646        { 
    47             CreateHandle(); 
    4847            InitializeComponent(); 
    4948            contentPanel.Controls.Add(SchedulerPage); 
    5049            contentPanel.Controls.Add(SettingsPage); 
     50            if (!IsHandleCreated) 
     51                CreateHandle(); 
    5152 
    5253            UXThemeApi.UpdateControlTheme(this); 
  • branches/eraser6/6.0/Eraser/SchedulerPanel.cs

    r1734 r1735  
    4242        public SchedulerPanel() 
    4343        { 
    44             CreateHandle(); 
    4544            InitializeComponent(); 
    4645            UXThemeApi.UpdateControlTheme(schedulerDefaultMenu); 
     46            if (!IsHandleCreated) 
     47                CreateHandle(); 
    4748 
    4849            //Populate the scheduler list-view with the current task list 
Note: See TracChangeset for help on using the changeset viewer.