Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3863 for trunk


Ignore:
Timestamp:
05/27/10 14:09:15 (15 years ago)
Author:
mkommend
Message:

corrected critical bug in ViewHost (ticket #972)

File:
1 edited

Legend:

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

    r3805 r3863  
    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.