diff options
author | Damiano Galassi <[email protected]> | 2016-01-28 07:32:16 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2016-01-28 07:32:16 +0100 |
commit | a37f528f742c2b27db3995c7b22147d9ef4d7049 (patch) | |
tree | 30e407ff65c15012425ba0f5379bde8d5a53634d /macosx/HBPresetsManager.m | |
parent | aa9e61d194f5b2a9f54f49067eb85d2655feb20d (diff) |
MacGui: fix some static anaylizer warnings.
Diffstat (limited to 'macosx/HBPresetsManager.m')
-rw-r--r-- | macosx/HBPresetsManager.m | 4 |
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, µ); - 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; } |