diff options
author | Bibiko <bibiko@eva.mpg.de> | 2011-01-05 12:15:15 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2011-01-05 12:15:15 +0000 |
commit | b1dc43ce1aa2871753321174239c973a9637a602 (patch) | |
tree | 2ce3a1e67dc369959484b550d9908fa542cee95c /Source/SPTextViewAdditions.m | |
parent | 2d6c795da8a79126bb25c646f43369df02593f19 (diff) | |
download | sequelpro-b1dc43ce1aa2871753321174239c973a9637a602.tar.gz sequelpro-b1dc43ce1aa2871753321174239c973a9637a602.tar.bz2 sequelpro-b1dc43ce1aa2871753321174239c973a9637a602.zip |
• fixed bug for Bundle commands to detect if current textview is the Query Editor
• added some more Default Bundles
Diffstat (limited to 'Source/SPTextViewAdditions.m')
-rw-r--r-- | Source/SPTextViewAdditions.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTextViewAdditions.m b/Source/SPTextViewAdditions.m index 2e1f8f9b..d061d3ae 100644 --- a/Source/SPTextViewAdditions.m +++ b/Source/SPTextViewAdditions.m @@ -534,7 +534,7 @@ [[NSFileManager defaultManager] removeItemAtPath:bundleInputFilePath error:nil]; - BOOL selfIsQueryEditor = ([[[self class] description] isEqualToString:@"SPTextView"] && [self respondsToSelector:@selector(currentQueryRange)]) ; + BOOL selfIsQueryEditor = ([[[self class] description] isEqualToString:@"SPTextView"] && [[self delegate] respondsToSelector:@selector(currentQueryRange)]); if([cmdData objectForKey:SPBundleFileInputSourceKey]) inputAction = [[cmdData objectForKey:SPBundleFileInputSourceKey] lowercaseString]; |