summaryrefslogtreecommitdiffstats
path: root/win/CS
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-05-21 00:02:21 +0000
committersr55 <[email protected]>2012-05-21 00:02:21 +0000
commit84c35378ff15d56f4dec5ca961514072e628c798 (patch)
tree8ff3571902b533dce6f571c17df24d9565ef2d0c /win/CS
parent23858a7c3663f632a785b61845b68e8f8c160f2c (diff)
WinGui: Bug fixes on the subtitles panel.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4694 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs10
-rw-r--r--win/CS/HandBrakeWPF/Views/SubtitlesView.xaml12
2 files changed, 16 insertions, 6 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs
index b4d8d65ab..515b25eb9 100644
--- a/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs
@@ -190,9 +190,12 @@ namespace HandBrakeWPF.ViewModels
{
foreach (SubtitleTrack track in this.Task.SubtitleTracks)
{
+ if (track == subtitle)
+ {
+ continue; // Skip the track the user selected.
+ }
track.Default = false;
}
- subtitle.Default = true;
this.NotifyOfPropertyChange(() => this.Task);
}
@@ -207,9 +210,12 @@ namespace HandBrakeWPF.ViewModels
{
foreach (SubtitleTrack track in this.Task.SubtitleTracks)
{
+ if (track == subtitle)
+ {
+ continue; // Skip the track the user selected.
+ }
track.Burned = false;
}
- subtitle.Burned = true;
this.NotifyOfPropertyChange(() => this.Task);
}
diff --git a/win/CS/HandBrakeWPF/Views/SubtitlesView.xaml b/win/CS/HandBrakeWPF/Views/SubtitlesView.xaml
index ae87c95b1..a1b32527d 100644
--- a/win/CS/HandBrakeWPF/Views/SubtitlesView.xaml
+++ b/win/CS/HandBrakeWPF/Views/SubtitlesView.xaml
@@ -85,10 +85,14 @@
<TextBlock Text="{Binding SrtFileName}" Grid.Column="1" VerticalAlignment="Center"
Visibility="{Binding IsSrtSubtitle, Converter={StaticResource booleanToVisConverter}, ConverterParameter=false}" />
- <TextBlock Text="Forced Only" FontWeight="Bold" Grid.Column="2" VerticalAlignment="Center" />
- <CheckBox Grid.Column="3" IsChecked="{Binding Forced}" VerticalAlignment="Center" Margin="5,0,5,0"/>
- <TextBlock Text="Burn In" FontWeight="Bold" Grid.Column="4" VerticalAlignment="Center" />
- <CheckBox Grid.Column="5" IsChecked="{Binding Burned}" VerticalAlignment="Center" Margin="5,0,5,0">
+ <TextBlock Text="Forced Only" FontWeight="Bold" Grid.Column="2" VerticalAlignment="Center"
+ Visibility="{Binding IsSrtSubtitle, Converter={StaticResource booleanToVisConverter}, ConverterParameter=true}" />
+ <CheckBox Grid.Column="3" IsChecked="{Binding Forced}" VerticalAlignment="Center" Margin="5,0,5,0"
+ Visibility="{Binding IsSrtSubtitle, Converter={StaticResource booleanToVisConverter}, ConverterParameter=true}" />
+ <TextBlock Text="Burn In" FontWeight="Bold" Grid.Column="4" VerticalAlignment="Center"
+ Visibility="{Binding IsSrtSubtitle, Converter={StaticResource booleanToVisConverter}, ConverterParameter=true}"/>
+ <CheckBox Grid.Column="5" IsChecked="{Binding Burned}" VerticalAlignment="Center" Margin="5,0,5,0"
+ Visibility="{Binding IsSrtSubtitle, Converter={StaticResource booleanToVisConverter}, ConverterParameter=true}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<cal:ActionMessage MethodName="SelectBurnedInTrack">