Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/04/13 10:15:31 (11 years ago)
Author:
jkarder
Message:

#2116:

  • fixed issues within the outermost control detection
  • fixed visible property assignment of the breadcrumb control in ViewHost
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Breadcrumbs/HeuristicLab.Core.Views/3.3/ItemListView.cs

    r10093 r10103  
    246246        var mainForm = MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>();
    247247        var outermostViewHost = mainForm.ShowContentInOutermostViewHost(item, this, true);
    248         if (outermostViewHost.HotlinkingEnabled) {
     248        if (outermostViewHost != null && outermostViewHost.HotlinkingEnabled) {
    249249          outermostViewHost.ActiveView.ReadOnly = ReadOnly;
    250250          outermostViewHost.ActiveView.Locked = Locked;
     
    275275        var mainForm = MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>();
    276276        var outermostViewHost = mainForm.ShowContentInOutermostViewHost(item, this);
    277         outermostViewHost.ActiveView.ReadOnly = ReadOnly;
    278         outermostViewHost.ActiveView.Locked = Locked;
     277        if (outermostViewHost != null) {
     278          outermostViewHost.ActiveView.ReadOnly = ReadOnly;
     279          outermostViewHost.ActiveView.Locked = Locked;
     280        }
    279281      }
    280282    }
Note: See TracChangeset for help on using the changeset viewer.