aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2013-01-03 22:55:34 +0000
committerstuconnolly <stuart02@gmail.com>2013-01-03 22:55:34 +0000
commit6dc71e1a45f5ba3437ebb37872129c62bb36e570 (patch)
tree3bbc235421e54ae00534da6f10e64d73c78c5d99
parentc626140ce65c3e9383d80e239562d54dc9f208e5 (diff)
downloadsequelpro-6dc71e1a45f5ba3437ebb37872129c62bb36e570.tar.gz
sequelpro-6dc71e1a45f5ba3437ebb37872129c62bb36e570.tar.bz2
sequelpro-6dc71e1a45f5ba3437ebb37872129c62bb36e570.zip
Enable the removal of the old favorites data in the preferences plist now that we know it's stable.
-rw-r--r--Source/SPPreferencesUpgrade.m6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/SPPreferencesUpgrade.m b/Source/SPPreferencesUpgrade.m
index 3c709153..5b8e42be 100644
--- a/Source/SPPreferencesUpgrade.m
+++ b/Source/SPPreferencesUpgrade.m
@@ -371,8 +371,7 @@ void SPMigrateConnectionFavoritesData(void)
[prefs setInteger:[[[favorites objectAtIndex:defaultFavoriteIndex] objectForKey:SPFavoriteIDKey] integerValue] forKey:SPDefaultFavorite];
}
- // TOOD: Favorites migration - only uncomment when we want to remove backwards compatibility
- //[prefs removeObjectForKey:@"LastFavoriteIndex"];
+ [prefs removeObjectForKey:@"LastFavoriteIndex"];
}
NSDictionary *newFavorites = [NSDictionary dictionaryWithObject:[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Favorites", @"favorites label"), SPFavoritesGroupNameKey, favorites, SPFavoriteChildrenKey, nil] forKey:SPFavoritesRootKey];
@@ -390,8 +389,7 @@ void SPMigrateConnectionFavoritesData(void)
NSLog(@"Error migrating favorites data: %@", [error localizedDescription]);
}
else {
- // TOOD: Favorites migration - only uncomment when we want to remove backwards compatibility
- //[prefs removeObjectForKey:SPOldFavoritesKey];
+ [prefs removeObjectForKey:SPOldFavoritesKey];
}
}
else if (errorString) {