summaryrefslogtreecommitdiffstats
path: root/win/CS
diff options
context:
space:
mode:
authorsr55 <[email protected]>2018-05-01 20:45:04 +0100
committersr55 <[email protected]>2018-05-01 20:45:04 +0100
commit63a5558d42087cffd4971b85f34b90e3832c0649 (patch)
treeac3fd26a5a0a81bfc2d831d1220343b587aa405b /win/CS
parent46f2e1ea8caa93d2f28d0c2d917890b5fda60e57 (diff)
WinGui: Fix Tabbing behaviour on the main tab control. Fixes #1313
Diffstat (limited to 'win/CS')
-rw-r--r--win/CS/HandBrakeWPF/Views/MainView.xaml.cs2
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 922746bee..957eeaeaf 100644
--- a/win/CS/HandBrakeWPF/Views/MainView.xaml.cs
+++ b/win/CS/HandBrakeWPF/Views/MainView.xaml.cs
@@ -66,7 +66,7 @@ namespace HandBrakeWPF.Views
private void TabControl_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
{
- if (e.AddedItems.Count > 0)
+ if (e.Source is TabControl && e.AddedItems.Count > 0)
{
TabItem tab = e.AddedItems[0] as TabItem;
if (tab != null && Properties.ResourcesUI.MainView_SummaryTab.Equals(tab.Header))