Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3805


Ignore:
Timestamp:
05/14/10 11:16:35 (15 years ago)
Author:
mkommend
Message:

corrected issue in ViewHost (ticket #972)

File:
1 edited

Legend:

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

    r3796 r3805  
    6060          activeView = value;
    6161          if (activeView != null) {
     62            ViewType = activeView.GetType();
    6263            RegisterActiveViewEvents();
    6364            View view = activeView as View;
     
    108109
    109110        Type defaultViewType = MainFormManager.GetDefaultViewType(Content.GetType());
    110         if (!ViewCanShowContent(viewType, Content)) {
     111        if (ViewType == null || !ViewCanShowContent(viewType, Content)) {
    111112          cachedViews.Clear();
    112113          if (defaultViewType == null) {
Note: See TracChangeset for help on using the changeset viewer.