From 930039b3154fcbf919b77ca0448865467e352896 Mon Sep 17 00:00:00 2001 From: Scott Date: Sun, 27 Dec 2015 20:16:31 +0000 Subject: [PATCH] WinGui: Missing changes from previous checking that was fixing queue edit bugs. --- win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs index 53c7c7882..13621e656 100644 --- a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs @@ -731,9 +731,7 @@ namespace HandBrakeWPF.ViewModels { get { - VideoTune tune = this.Task.VideoTunes.FirstOrDefault(t => !Equals(t, VideoTune.FastDecode)) - ?? VideoTune.None; - return tune; + return this.videoTune; } set { @@ -976,6 +974,9 @@ namespace HandBrakeWPF.ViewModels this.NotifyOfPropertyChange(() => this.FastDecode); this.NotifyOfPropertyChange(() => this.ExtraArguments); + this.VideoTune = (task.VideoTunes != null && task.VideoTunes.Any() ? task.VideoTunes.FirstOrDefault(t => !Equals(t, VideoTune.FastDecode)) : this.VideoTunes.FirstOrDefault()) + ?? VideoTune.None; + HBVideoEncoder encoder = HandBrakeEncoderHelpers.VideoEncoders.FirstOrDefault(s => s.ShortName == EnumHelper.GetShortName(this.SelectedVideoEncoder)); if (encoder != null && this.VideoPreset != null) { -- 2.40.0