Free cookie consent management tool by TermsFeed Policy Generator

Changeset 639


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

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

File:
1 edited

Legend:

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

    r2 r639  
    280280      for (int i = 0; i < MdiChildren.Length; i++) {
    281281        EditorForm form = MdiChildren[i] as EditorForm;
    282         if (((Control)form.Editor).Enabled) Save(form);
     282        if (form!=null && ((Control)form.Editor).Enabled) Save(form);
    283283      }
    284284    }
Note: See TracChangeset for help on using the changeset viewer.