diff options
author | sr55 <[email protected]> | 2020-06-05 21:48:48 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2020-06-05 21:49:08 +0100 |
commit | 5172e6ceedf05a7d8462bc6936d8abd0e74efe7e (patch) | |
tree | 9cdc052e7fd2d811d466fe02f63eed4beac005bf /win/CS/HandBrakeWPF/Views | |
parent | 75bae14a8b182a5d60f1096b444fc5ce74dfa415 (diff) |
WinGui: Another fix to the preset panel behaviour.
(cherry picked from commit a19b4b0a304ba5c8e5349a50dcce7fdcaf48691a)
Diffstat (limited to 'win/CS/HandBrakeWPF/Views')
-rw-r--r-- | win/CS/HandBrakeWPF/Views/MainView.xaml.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Views/MainView.xaml.cs b/win/CS/HandBrakeWPF/Views/MainView.xaml.cs index b436bcca3..a75981286 100644 --- a/win/CS/HandBrakeWPF/Views/MainView.xaml.cs +++ b/win/CS/HandBrakeWPF/Views/MainView.xaml.cs @@ -137,7 +137,7 @@ namespace HandBrakeWPF.Views if (e.Source.GetType() == typeof(TreeViewItem))
{
TreeViewItem item = e.Source as TreeViewItem;
- if (item != null && item.GetType() == typeof(PresetDisplayCategory))
+ if (item != null && item.DataContext?.GetType() == typeof(PresetDisplayCategory))
{
item.IsSelected = false;
}
|