]> granicus.if.org Git - handbrake/commitdiff
WinGui: Fix Tabbing behaviour on the main tab control. Fixes #1313
authorsr55 <sr55.hb@outlook.com>
Tue, 1 May 2018 19:45:04 +0000 (20:45 +0100)
committersr55 <sr55.hb@outlook.com>
Tue, 1 May 2018 19:45:04 +0000 (20:45 +0100)
win/CS/HandBrakeWPF/Views/MainView.xaml.cs

index 922746beebc00df745b1c701814d9dbdc13f0d7e..957eeaeafba37b34892f5768e7550a853601d77a 100644 (file)
@@ -66,7 +66,7 @@ namespace HandBrakeWPF.Views
 \r
         private void TabControl_OnSelectionChanged(object sender, SelectionChangedEventArgs e)\r
         {\r
-            if (e.AddedItems.Count > 0)\r
+            if (e.Source is TabControl && e.AddedItems.Count > 0)\r
             {\r
                 TabItem tab = e.AddedItems[0] as TabItem;\r
                 if (tab != null && Properties.ResourcesUI.MainView_SummaryTab.Equals(tab.Header))\r