Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3730


Ignore:
Timestamp:
05/10/10 01:50:58 (15 years ago)
Author:
mkommend
Message:

added additional default view check when the content is changed (ticket #972)

File:
1 edited

Legend:

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

    r3720 r3730  
    108108        }
    109109
    110         if (!ViewCanShowContent(viewType, Content)) {
     110        Type defaultViewType = MainFormManager.GetDefaultViewType(Content.GetType());
     111        if (!ViewCanShowContent(viewType, Content) || defaultViewType != this.ViewType) {
    111112          cachedViews.Clear();
    112           ViewType = MainFormManager.GetDefaultViewType(Content.GetType());
     113          ViewType = defaultViewType;
    113114          if ((viewType == null) && (viewContextMenuStrip.Items.Count > 0))  // create first available view if default view is not available
    114115            ViewType = (Type)viewContextMenuStrip.Items[0].Tag;
Note: See TracChangeset for help on using the changeset viewer.