Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/02/14 11:51:23 (11 years ago)
Author:
psteiner
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/FilterView.cs

    r10696 r10697  
    4444    private void Content_CheckedItemsChanged(object sender, Collections.CollectionItemsChangedEventArgs<IFilter> e)
    4545    {
    46       //change active state of filters
     46     
    4747      foreach (IFilter filter in e.Items)
    4848      {
    49         filter.Active = !filter.Active;
     49        if (!filter.Active && (filter.ConstrainedValue == null || filter.ConstraintData == null || filter.ConstraintOperation == null))
     50        {
     51          filterView.Content.SetItemCheckedState(filter, false);
     52        }
     53        else //change active state of filters
     54        {
     55          filter.Active = !filter.Active;
     56        }
    5057      }
    5158      UpdateFilterInfo();
Note: See TracChangeset for help on using the changeset viewer.