diff options
author | Bibiko <bibiko@eva.mpg.de> | 2011-01-12 14:17:31 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2011-01-12 14:17:31 +0000 |
commit | c2fa1986d547f524501a6ee01d95b0f6b0d85af7 (patch) | |
tree | e2bd06b6f7d9a2ee79c8cd0fd1ad288249632e8a /Source | |
parent | 895278394c8b4954e5dde9a3fcf0470c956c3867 (diff) | |
download | sequelpro-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
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPAppController.m | 5 |
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") |