aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-12-21 07:21:34 +0000
committerBibiko <bibiko@eva.mpg.de>2010-12-21 07:21:34 +0000
commit8d04b38d0b5a76bc1ac1608e017820e6a4ceba49 (patch)
treefff46857a642c72f9668c0e0b7ba6cd3896e4ce3 /Source
parent412b09885523847f4f9b0eb8bf898dcf72688952 (diff)
downloadsequelpro-8d04b38d0b5a76bc1ac1608e017820e6a4ceba49.tar.gz
sequelpro-8d04b38d0b5a76bc1ac1608e017820e6a4ceba49.tar.bz2
sequelpro-8d04b38d0b5a76bc1ac1608e017820e6a4ceba49.zip
• fixes issue while updating a Bundle - move the folder to Trash not only the command.plist
Diffstat (limited to 'Source')
-rw-r--r--Source/SPAppController.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m
index 63be06c0..e216e9ba 100644
--- a/Source/SPAppController.m
+++ b/Source/SPAppController.m
@@ -550,7 +550,7 @@
NSInteger answer = [alert runModal];
if(answer == NSAlertDefaultReturn) {
NSError *error = nil;
- NSString *moveToTrashCommand = [NSString stringWithFormat:@"osascript -e 'tell application \"Finder\" to move (POSIX file \"%@\") to the trash'", infoPath];
+ NSString *moveToTrashCommand = [NSString stringWithFormat:@"osascript -e 'tell application \"Finder\" to move (POSIX file \"%@\") to the trash'", newPath];
[moveToTrashCommand runBashCommandWithEnvironment:nil atCurrentDirectoryPath:nil error:&error];
if(error != nil) {
NSAlert *alert = [NSAlert alertWithMessageText:[NSString stringWithFormat:NSLocalizedString(@"Error while moving “%@” to Trash.", @"error while moving “%@” to trash"), [[installedBundleUUIDs objectForKey:[cmdData objectForKey:SPBundleFileUUIDKey]] objectForKey:@"path"]]