summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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))