Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/22/10 05:14:39 (14 years ago)
Author:
swagner
Message:

Worked on the refactoring of saving and loading items (#990)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/SaveAsMenuItem.cs

    r3416 r3483  
    2323using System.Collections.Generic;
    2424using System.Windows.Forms;
     25using HeuristicLab.Common;
    2526using HeuristicLab.MainForm;
    2627
     
    4546    protected override void OnActiveViewChanged(object sender, EventArgs e) {
    4647      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;
    4850    }
    4951
Note: See TracChangeset for help on using the changeset viewer.