Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/27/10 21:45:42 (14 years ago)
Author:
mkommend
Message:

corrected critical bug in release tag (ticket #972)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/3.3.0/HeuristicLab.MainForm.WindowsForms/3.3/ViewHost.cs

    r3805 r3866  
    114114            if (viewContextMenuStrip.Items.Count > 0)  // create first available view if default view is not available
    115115              ViewType = (Type)viewContextMenuStrip.Items[0].Tag;
    116           } else if (defaultViewType != this.ViewType)
    117             ViewType = defaultViewType;
     116          } else ViewType = defaultViewType;
     117        } else {
     118          foreach (Type type in cachedViews.Keys.ToList()) {
     119            if (!ViewCanShowContent(type, Content))
     120              cachedViews.Remove(type);
     121          }
    118122        }
    119123        UpdateActiveMenuItem();
Note: See TracChangeset for help on using the changeset viewer.