Ignore:
Timestamp:
07/30/18 14:38:22 (14 months ago)
Author:
abeham
Message:

#2930: reduced to what it was before, but without privilege check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Clients.OKB.Views/3.3/RunCreation/CreateFromExperimentMenuItem.cs

    r16032 r16033  
    4242      IContentView activeView = MainFormManager.MainForm.ActiveView as IContentView;
    4343
    44       ToolStripItem.Enabled = false;
    45       if (activeView == null) { return; }
    46       if (activeView.Content == null) { return; }
    47       if (!((activeView.Content is Experiment)
    48         || (activeView.Content is RunCollection)
    49         || (activeView.Content is IOptimizer))) { return; }
    50       if (activeView.Locked) { return; }
    51 
    52       ToolStripItem.Enabled = true;
     44      ToolStripItem.Enabled = (activeView != null) && (activeView.Content != null)
     45        && ((activeView.Content is Experiment) || (activeView.Content is RunCollection) || (activeView.Content is IOptimizer))
     46        && !activeView.Locked;
    5347    }
    5448
Note: See TracChangeset for help on using the changeset viewer.