Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4532


Ignore:
Timestamp:
09/28/10 15:43:53 (14 years ago)
Author:
mkommend
Message:

Corrected enabled state of the save toolbar and menu items (ticket #1221).

Location:
trunk/sources
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/View.cs

    r4519 r4532  
    8383          base.Enabled = value;
    8484          this.ResumeRepaint(true);
     85          OnChanged();
    8586        }
    8687      }
  • trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/SaveAsMenuItem.cs

    r3483 r4532  
    4747      IContentView activeView = MainFormManager.MainForm.ActiveView as IContentView;
    4848      ToolStripItem.Enabled = (activeView != null) && (activeView.Content != null) &&
    49                               (activeView.Content is IStorableContent) && !activeView.Locked;
     49                              (activeView.Content is IStorableContent) && !activeView.Locked && activeView.Enabled;
    5050    }
    5151
  • trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/SaveMenuItem.cs

    r3483 r4532  
    5151      IContentView activeView = MainFormManager.MainForm.ActiveView as IContentView;
    5252      ToolStripItem.Enabled = (activeView != null) && (activeView.Content != null) &&
    53                               (activeView.Content is IStorableContent) && !activeView.Locked;
     53                              (activeView.Content is IStorableContent) && !activeView.Locked && activeView.Enabled;
    5454    }
    5555
  • trunk/sources/HeuristicLab.Optimizer/3.3/ToolBarItems/SaveToolBarItem.cs

    r3483 r4532  
    4747      IContentView activeView = MainFormManager.MainForm.ActiveView as IContentView;
    4848      ToolStripItem.Enabled = (activeView != null) && (activeView.Content != null) &&
    49                               (activeView.Content is IStorableContent) && !activeView.Locked;
     49                              (activeView.Content is IStorableContent) && !activeView.Locked && activeView.Enabled;
    5050    }
    5151
Note: See TracChangeset for help on using the changeset viewer.