- Timestamp:
- 04/22/10 05:14:39 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimizer/3.3/ToolBarItems/SaveToolBarItem.cs
r3416 r3483 23 23 using System.Drawing; 24 24 using System.Windows.Forms; 25 using HeuristicLab.Common; 25 26 using HeuristicLab.MainForm; 26 27 … … 45 46 protected override void OnActiveViewChanged(object sender, EventArgs e) { 46 47 IContentView activeView = MainFormManager.MainForm.ActiveView as IContentView; 47 ToolStripItem.Enabled = (activeView != null) && (!activeView.Locked); 48 ToolStripItem.Enabled = (activeView != null) && (activeView.Content != null) && 49 (activeView.Content is IStorableContent) && !activeView.Locked; 48 50 } 49 51
Note: See TracChangeset
for help on using the changeset viewer.