aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2011-01-12 14:17:31 +0000
committerBibiko <bibiko@eva.mpg.de>2011-01-12 14:17:31 +0000
commitc2fa1986d547f524501a6ee01d95b0f6b0d85af7 (patch)
treee2bd06b6f7d9a2ee79c8cd0fd1ad288249632e8a
parent895278394c8b4954e5dde9a3fcf0470c956c3867 (diff)
downloadsequelpro-c2fa1986d547f524501a6ee01d95b0f6b0d85af7.tar.gz
sequelpro-c2fa1986d547f524501a6ee01d95b0f6b0d85af7.tar.bz2
sequelpro-c2fa1986d547f524501a6ee01d95b0f6b0d85af7.zip
• fixed issue for installing a Bundle if Sequel Pro didn't run, i.e. e.g. double-click in Finder at a spBundle file
-rw-r--r--Source/SPAppController.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m
index 0e01c148..ee400a06 100644
--- a/Source/SPAppController.m
+++ b/Source/SPAppController.m
@@ -552,6 +552,11 @@ YY_BUFFER_STATE yy_scan_string (const char *);
if (cmdData) [cmdData release];
return;
}
+
+ // Reload Bundles if Sequel Pro didn't run
+ if(![installedBundleUUIDs count])
+ [self reloadBundles:self];
+
if([[installedBundleUUIDs allKeys] containsObject:[cmdData objectForKey:SPBundleFileUUIDKey]]) {
NSAlert *alert = [NSAlert alertWithMessageText:[NSString stringWithFormat:NSLocalizedString(@"Installing Bundle", @"Open Files : Bundle : Already-Installed : 'Update Bundle' question dialog title")]
defaultButton:NSLocalizedString(@"Update", @"Open Files : Bundle : Already-Installed : Update button")