Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/11/08 17:06:56 (16 years ago)
Author:
gkronber
Message:

fixed #301 ('Save all' throws Exceptions when there are windows containing views (which are not editors))

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.OptimizationFrontend/MainForm.cs

    r2 r640  
    293293      for (int i = 0; i < MdiChildren.Length; i++) {
    294294        EditorForm form = MdiChildren[i] as EditorForm;
    295         if (((Control)form.Editor).Enabled) Save(form);
     295        if (form!=null && ((Control)form.Editor).Enabled) Save(form);
    296296      }
    297297    }
Note: See TracChangeset for help on using the changeset viewer.