Changeset 7400
- Timestamp:
- 01/24/12 12:29:49 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/CloseMenuItem.cs
r7259 r7400 42 42 43 43 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); 45 45 } 46 46 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); 48 48 } 49 49
Note: See TracChangeset
for help on using the changeset viewer.