aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPBundleEditorController.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-12-21 09:46:07 +0000
committerBibiko <bibiko@eva.mpg.de>2010-12-21 09:46:07 +0000
commit71ca21ef73cd58d2c18e11329b68d89350dca0fd (patch)
tree7596b1b8e3f70f6d65126114a8afc457c9031291 /Source/SPBundleEditorController.m
parent8d04b38d0b5a76bc1ac1608e017820e6a4ceba49 (diff)
downloadsequelpro-71ca21ef73cd58d2c18e11329b68d89350dca0fd.tar.gz
sequelpro-71ca21ef73cd58d2c18e11329b68d89350dca0fd.tar.bz2
sequelpro-71ca21ef73cd58d2c18e11329b68d89350dca0fd.zip
• fixed issue for duplicating a Bundle (the new UUID will be saved immediately)
• finished default Bundle update handling: - default Bundles will be copied into AppSupport/SP/Bundles if they don't exist - if a default Bundle was updated - then we have to add the corresponding UUID into the Prefs for key updatedDefaultBundles - while launching SP checks for possible updates - if so the Bundle will be overwritten if the user didn't changed - if user changed it then the user's version will be duplicated as "(user)" with a different UUID and the default tag will be removed - and the new Bundle will replace the old one - i.e. the user can decide whether to incorporate its changes or not - if such user-modified Bundles are found the user will be informed about it otherwise an update works quietly
Diffstat (limited to 'Source/SPBundleEditorController.m')
-rw-r--r--Source/SPBundleEditorController.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/SPBundleEditorController.m b/Source/SPBundleEditorController.m
index cf6478fe..3d64c112 100644
--- a/Source/SPBundleEditorController.m
+++ b/Source/SPBundleEditorController.m
@@ -615,6 +615,8 @@
}
[bundle setObject:newFileName forKey:kBundleNameKey];
+ [self saveBundle:bundle atPath:nil];
+
// Insert duplicate below selected one
NSUInteger *currentPath[[currentIndexPath length]];
[currentIndexPath getIndexes:&currentPath];