From 68c7afa8cf9936074b2ff60b382f5a523c16ae4e Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Tue, 14 Apr 2009 01:23:04 +0000 Subject: - Ensure pref upgrades only happen once even if reverting back to older versions for testing/usage --- Source/SPPreferenceController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/SPPreferenceController.m b/Source/SPPreferenceController.m index 3838badf..d5c34db2 100644 --- a/Source/SPPreferenceController.m +++ b/Source/SPPreferenceController.m @@ -105,8 +105,8 @@ if ([prefs objectForKey:@"lastUsedVersion"]) recordedVersionNumber = [[prefs objectForKey:@"lastUsedVersion"] intValue]; if ([prefs objectForKey:@"LastUsedVersion"]) recordedVersionNumber = [[prefs objectForKey:@"LastUsedVersion"] intValue]; - // Skip processing if the current version matches recorded version - if (currentVersionNumber == recordedVersionNumber) return; + // Skip processing if the current version matches or is less than recorded version + if (currentVersionNumber <= recordedVersionNumber) return; // If no recorded version, update to current revision and skip processing if (!recordedVersionNumber) { -- cgit v1.2.3