From: sr55 Date: Tue, 1 May 2018 19:45:04 +0000 (+0100) Subject: WinGui: Fix Tabbing behaviour on the main tab control. Fixes #1313 X-Git-Tag: 1.1.1~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2ff4f3ce4813a750205c624f40a8ac5cd750ab7c;p=handbrake WinGui: Fix Tabbing behaviour on the main tab control. Fixes #1313 --- 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))