From 0526951c3fb10bbdd62150165fc1daf2f72e25cc Mon Sep 17 00:00:00 2001 From: sr55 Date: Wed, 20 Jun 2012 17:48:38 +0000 Subject: WinGui: - Another fix to the Subtitles panel. - Try Default the Destination Browse window to the currently set path. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4760 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs') diff --git a/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs index 657318f34..aaf6fa43e 100644 --- a/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs @@ -307,16 +307,18 @@ namespace HandBrakeWPF.ViewModels this.SourceTracks.FirstOrDefault(s => s.SubtitleType != SubtitleType.ForeignAudioSearch)) : null); - if (source != null) + if (source == null) { - SubtitleTrack track = new SubtitleTrack + source = ForeignAudioSearchTrack; + } + + SubtitleTrack track = new SubtitleTrack { SubtitleType = SubtitleType.VobSub, SourceTrack = source, }; - this.Task.SubtitleTracks.Add(track); - } + this.Task.SubtitleTracks.Add(track); } /// -- cgit v1.2.3