From 63a5558d42087cffd4971b85f34b90e3832c0649 Mon Sep 17 00:00:00 2001 From: sr55 Date: Tue, 1 May 2018 20:45:04 +0100 Subject: [PATCH] WinGui: Fix Tabbing behaviour on the main tab control. Fixes #1313 --- win/CS/HandBrakeWPF/Views/MainView.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.40.0