Fixed BlockGroupBrowser indeterminate checkbox state bug

This commit is contained in:
Ben 2015-07-24 14:47:47 +01:00
parent e80295cb69
commit 1882687601
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,6 @@ using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using System.Windows.Documents;
using Castle.Core.Internal;
using Filtration.ObjectModel;
using Filtration.Properties;

View File

@ -17,7 +17,8 @@ namespace Filtration.Utilities
if (viewModel.ChildGroups.All(g => g.IsChecked == true))
{
viewModel.IsChecked = true;
} else if (viewModel.ChildGroups.Any(g => g.IsChecked == true))
}
else if (viewModel.ChildGroups.Any(g => g.IsChecked == true || g.IsChecked == null))
{
viewModel.IsChecked = null;
}