summaryrefslogtreecommitdiffstats
path: root/macosx/HBPresetsManager.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2016-01-28 07:32:16 +0100
committerDamiano Galassi <[email protected]>2016-01-28 07:32:16 +0100
commita37f528f742c2b27db3995c7b22147d9ef4d7049 (patch)
tree30e407ff65c15012425ba0f5379bde8d5a53634d /macosx/HBPresetsManager.m
parentaa9e61d194f5b2a9f54f49067eb85d2655feb20d (diff)
MacGui: fix some static anaylizer warnings.
Diffstat (limited to 'macosx/HBPresetsManager.m')
-rw-r--r--macosx/HBPresetsManager.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/macosx/HBPresetsManager.m b/macosx/HBPresetsManager.m
index 275d79706..aa78455ff 100644
--- a/macosx/HBPresetsManager.m
+++ b/macosx/HBPresetsManager.m
@@ -84,7 +84,9 @@ NSString *HBPresetsChangedNotification = @"HBPresetsChangedNotification";
int major, minor, micro;
hb_presets_current_version(&major, &minor, &micro);
- if ([dict[@"VersionMajor"] intValue] > major)
+ if ([dict[@"VersionMajor"] intValue] > major ||
+ ([dict[@"VersionMajor"] intValue] == major && [dict[@"VersionMinor"] intValue] > minor) ||
+ ([dict[@"VersionMajor"] intValue] == major && [dict[@"VersionMinor"] intValue] == minor && [dict[@"VersionMicro"] intValue] > micro))
{
return YES;
}