summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-05-14 14:59:59 +0000
committersr55 <[email protected]>2011-05-14 14:59:59 +0000
commit10b965d8b1dbe294a66214b01e23d48ababdc37b (patch)
tree38f054bdb88548dfddfbfec17413d44f8185bbda /win/CS/HandBrake.ApplicationServices
parent407aa2324adb84d97a61ddefde22178dff5c6063 (diff)
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
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/PresetService.cs12
1 files changed, 8 insertions, 4 deletions
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> 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;