Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/25/09 13:25:40 (15 years ago)
Author:
mkommend
Message:

added invoke required checks in close view methods (ticket #716)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm/3.2/SingleDocumentMainForm.cs

    r2308 r2309  
    6464
    6565    public override void CloseView(IView view) {
    66       DocumentForm documentForm = FindForm(view);
    67       if (documentForm != null)
    68         documentForm.Close();
     66      if (InvokeRequired) Invoke((Action<IView>)CloseView, view);
     67      else {
     68        DocumentForm documentForm = FindForm(view);
     69        if (documentForm != null)
     70          documentForm.Close();
     71      }
    6972    }
    7073
Note: See TracChangeset for help on using the changeset viewer.