Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/07/10 23:44:47 (15 years ago)
Author:
swagner
Message:

Enabled saving of all items instead of just those for which the CreatableAttribute is set (#896)

Location:
trunk/sources/HeuristicLab.Optimizer/3.3/ToolBarItems
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimizer/3.3/ToolBarItems/SaveAllToolBarItem.cs

    r2958 r2960  
    4949      var views = from v in MainFormManager.MainForm.Views
    5050                  where v is IContentView
    51                   where CreatableAttribute.IsCreatable(((IContentView)v).Content.GetType())
    5251                  where ((v is ItemView) && ((ItemView)v).EnableFileOperations) || (!(v is ItemView))
    5352                  select v;
  • trunk/sources/HeuristicLab.Optimizer/3.3/ToolBarItems/SaveToolBarItem.cs

    r2958 r2960  
    4747    protected override void OnActiveViewChanged(object sender, EventArgs e) {
    4848      IContentView activeView = MainFormManager.MainForm.ActiveView as IContentView;
    49       bool enable = ((activeView != null) && (CreatableAttribute.IsCreatable(activeView.Content.GetType())));
     49      bool enable = activeView != null;
    5050      ItemView itemView = MainFormManager.MainForm.ActiveView as ItemView;
    5151      if ((enable) && (itemView != null)) enable = itemView.EnableFileOperations;
Note: See TracChangeset for help on using the changeset viewer.