summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.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/HandBrakeWPF/ViewModels/SubtitlesViewModel.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/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs10
1 files changed, 8 insertions, 2 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);
}