From 10b965d8b1dbe294a66214b01e23d48ababdc37b Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 14 May 2011 14:59:59 +0000 Subject: WinGui: - More reliable version checking on the "Out of Date built-in preset check" git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3980 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- .../HandBrake.ApplicationServices/Services/PresetService.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'win/CS') diff --git a/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs b/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs index a94279a29..721b9b939 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs @@ -279,11 +279,15 @@ namespace HandBrake.ApplicationServices.Services // Update built-in Presets if the built-in Presets belong to an older version. if (this.presets.Count != 0) { - if (this.presets[0].Version != Properties.Settings.Default.HandBrakeVersion) + List preset = this.presets.Where(p => p.IsBuildIn).ToList(); + if (preset.Count > 0) { - this.UpdateBuiltInPresets(string.Empty); - return true; - } + if (preset[0].Version != Properties.Settings.Default.HandBrakeVersion) + { + this.UpdateBuiltInPresets(string.Empty); + return true; + } + } } return false; -- cgit v1.2.3