aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPPreferenceController.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-12-07 22:45:09 +0000
committerrowanbeentje <rowan@beent.je>2009-12-07 22:45:09 +0000
commita2c7f0a33464fd3558f328bc975b8f1fc3ca2dfe (patch)
treee6903d139f5f4d0f832636be3f9131cac53e4cc6 /Source/SPPreferenceController.m
parent73df7b3d9a91bb57319a6fa44e5c01656a4443aa (diff)
downloadsequelpro-a2c7f0a33464fd3558f328bc975b8f1fc3ca2dfe.tar.gz
sequelpro-a2c7f0a33464fd3558f328bc975b8f1fc3ca2dfe.tar.bz2
sequelpro-a2c7f0a33464fd3558f328bc975b8f1fc3ca2dfe.zip
- Additional error checking when reading in query favorites to ensure a malformed favorite does not break application launch
- Move favorites update routine to a later revision check to upgrade any query favorites created by dual use of 0.9.6 and nightlies
Diffstat (limited to 'Source/SPPreferenceController.m')
-rw-r--r--Source/SPPreferenceController.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPPreferenceController.m b/Source/SPPreferenceController.m
index da5c03ae..38c76f9e 100644
--- a/Source/SPPreferenceController.m
+++ b/Source/SPPreferenceController.m
@@ -267,8 +267,8 @@
[prefs setObject:[NSDictionary dictionaryWithDictionary:toolbarDict] forKey:@"NSToolbar Configuration TableWindowToolbar"];
}
- // For versions prior to r1263 (~0.9.7), convert the query favorites array to an array of dictionaries
- if (recordedVersionNumber < 1263 && [prefs objectForKey:SPQueryFavorites]) {
+ // For versions prior to r1598 (~0.9.7), convert the query favorites array to an array of dictionaries
+ if (recordedVersionNumber < 1598 && [prefs objectForKey:SPQueryFavorites]) {
NSMutableArray *queryFavoritesArray = [NSMutableArray arrayWithArray:[prefs objectForKey:SPQueryFavorites]];
for (i = 0; i < [queryFavoritesArray count]; i++)