diff options
author | rowanbeentje <rowan@beent.je> | 2009-04-14 01:23:04 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-04-14 01:23:04 +0000 |
commit | 68c7afa8cf9936074b2ff60b382f5a523c16ae4e (patch) | |
tree | 32c7651d81f28b0d2a0dfc34b099ff8a4b1c4b3e /Source | |
parent | b485234bc633c6d9a1fb25132ad14dba34a54c97 (diff) | |
download | sequelpro-68c7afa8cf9936074b2ff60b382f5a523c16ae4e.tar.gz sequelpro-68c7afa8cf9936074b2ff60b382f5a523c16ae4e.tar.bz2 sequelpro-68c7afa8cf9936074b2ff60b382f5a523c16ae4e.zip |
- Ensure pref upgrades only happen once even if reverting back to older versions for testing/usage
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPPreferenceController.m | 4 |
1 files 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) { |