Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/25/10 00:31:12 (14 years ago)
Author:
swagner
Message:

Fixed minor bugs of r4084 (#972)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/ViewHost.cs

    r4084 r4097  
    2323using System.Collections.Generic;
    2424using System.Linq;
     25using System.Reflection;
    2526using System.Windows.Forms;
    2627using HeuristicLab.Common;
    27 using System.Reflection;
    2828
    2929namespace HeuristicLab.MainForm.WindowsForms {
     
    106106
    107107    public void ClearCache() {
    108       foreach (var cachedView in cachedViews) {
     108      foreach (var cachedView in cachedViews.ToArray()) {
    109109        if (cachedView.Value != activeView) {
    110110          Control c = cachedView.Value as Control;
     
    116116        }
    117117      }
     118      if (cachedViews.Count == 0) ViewType = null;
    118119    }
    119120
Note: See TracChangeset for help on using the changeset viewer.