]> granicus.if.org Git - handbrake/commitdiff
WinGui: Missing changes from previous checking that was fixing queue edit bugs.
authorScott <sr55.hb@outlook.com>
Sun, 27 Dec 2015 20:16:31 +0000 (20:16 +0000)
committerScott <sr55.hb@outlook.com>
Sun, 27 Dec 2015 20:16:31 +0000 (20:16 +0000)
win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs

index 53c7c7882efa56806dc7e59e5ca5538854da8362..13621e656887003b2bdde63955dfc6f0d62b6009 100644 (file)
@@ -731,9 +731,7 @@ namespace HandBrakeWPF.ViewModels
         {\r
             get\r
             {\r
-                VideoTune tune = this.Task.VideoTunes.FirstOrDefault(t => !Equals(t, VideoTune.FastDecode))\r
-                                 ?? VideoTune.None;\r
-                return tune;\r
+                return this.videoTune;\r
             }\r
             set\r
             {\r
@@ -976,6 +974,9 @@ namespace HandBrakeWPF.ViewModels
             this.NotifyOfPropertyChange(() => this.FastDecode);\r
             this.NotifyOfPropertyChange(() => this.ExtraArguments);\r
 \r
+            this.VideoTune = (task.VideoTunes != null && task.VideoTunes.Any() ? task.VideoTunes.FirstOrDefault(t => !Equals(t, VideoTune.FastDecode)) : this.VideoTunes.FirstOrDefault())\r
+                                        ?? VideoTune.None;\r
+\r
             HBVideoEncoder encoder = HandBrakeEncoderHelpers.VideoEncoders.FirstOrDefault(s => s.ShortName == EnumHelper<VideoEncoder>.GetShortName(this.SelectedVideoEncoder));\r
             if (encoder != null && this.VideoPreset != null)\r
             {\r