Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/24/12 13:33:38 (13 years ago)
Author:
ascheibe
Message:

#1744 updated branch from trunk

Location:
branches/HiveHiveEngine
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveHiveEngine

  • branches/HiveHiveEngine/HeuristicLab.Optimizer/3.3/MenuItems/CloseMenuItem.cs

    r7259 r7401  
    4242
    4343    protected override void OnToolStripItemSet(EventArgs e) {
    44       ToolStripItem.Enabled = !(MainFormManager.MainForm.ActiveView is Sidebar);
     44      ToolStripItem.Enabled = (MainFormManager.MainForm.ActiveView != null) && !(MainFormManager.MainForm.ActiveView is Sidebar);
    4545    }
    4646    protected override void OnActiveViewChanged(object sender, EventArgs e) {
    47       ToolStripItem.Enabled = !(MainFormManager.MainForm.ActiveView is Sidebar);
     47      ToolStripItem.Enabled = (MainFormManager.MainForm.ActiveView != null) && !(MainFormManager.MainForm.ActiveView is Sidebar);
    4848    }
    4949
Note: See TracChangeset for help on using the changeset viewer.