aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPAppController.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2011-01-05 12:58:02 +0000
committerBibiko <bibiko@eva.mpg.de>2011-01-05 12:58:02 +0000
commit7415fbd1d1bd93881899732590ceee55d8891aff (patch)
tree88a0f92eee033f45abf1f0cf62ac0c464dc29af8 /Source/SPAppController.m
parent1c085bf3a240935dae3d77c697717d5595ba9584 (diff)
downloadsequelpro-7415fbd1d1bd93881899732590ceee55d8891aff.tar.gz
sequelpro-7415fbd1d1bd93881899732590ceee55d8891aff.tar.bz2
sequelpro-7415fbd1d1bd93881899732590ceee55d8891aff.zip
• further fix for updating default Bundles after SP update
Diffstat (limited to 'Source/SPAppController.m')
-rw-r--r--Source/SPAppController.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m
index 1cc7eda9..ca8c3dcc 100644
--- a/Source/SPAppController.m
+++ b/Source/SPAppController.m
@@ -1366,6 +1366,9 @@
NSMutableString *infoAboutUpdatedDefaultBundles = [NSMutableString string];
BOOL doBundleUpdate = ([[NSUserDefaults standardUserDefaults] objectForKey:@"doBundleUpdate"]) ? YES : NO;
+ if(doBundleUpdate && !appSupportPath)
+ [bundlePaths insertObject:[[NSFileManager defaultManager] applicationSupportDirectoryForSubDirectory:SPBundleSupportFolder createIfNotExists:YES error:nil] atIndex:0];
+
for(NSString* bundlePath in bundlePaths) {
if([bundlePath length]) {