aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableContent.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-07-18 23:00:33 +0200
committerMax <post@wickenrode.com>2015-07-18 23:00:33 +0200
commit78f82e0609dbd76bda3051cf6f5db4d1ed693739 (patch)
treeddfc7845ba803a4d719e6d3c83e7430f861c775a /Source/SPTableContent.m
parentde096a38ff571921f69e5a9dd2534945afa15b72 (diff)
downloadsequelpro-78f82e0609dbd76bda3051cf6f5db4d1ed693739.tar.gz
sequelpro-78f82e0609dbd76bda3051cf6f5db4d1ed693739.tar.bz2
sequelpro-78f82e0609dbd76bda3051cf6f5db4d1ed693739.zip
Fix an issue where LIKE filters were changed to BINARY if reloading a table via cmd+R
Even though BINARY should only be enabled when holding down ⇧ while doing the search, it actually did react to ctrl,cmd and alt, too. Fixes #2179
Diffstat (limited to 'Source/SPTableContent.m')
-rw-r--r--Source/SPTableContent.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index b3f4d385..905e9f48 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -1103,8 +1103,7 @@ static NSString *SPTableFilterSetDefaultOperator = @"SPTableFilterSetDefaultOper
// If the clause has the placeholder $BINARY that placeholder will be replaced
// by BINARY if the user pressed ⇧ while invoking 'Filter' otherwise it will
// replaced by @"".
- BOOL caseSensitive = (([[[NSApp onMainThread] currentEvent] modifierFlags]
- & (NSShiftKeyMask|NSControlKeyMask|NSAlternateKeyMask|NSCommandKeyMask)) > 0);
+ BOOL caseSensitive = (([[[NSApp onMainThread] currentEvent] modifierFlags] & NSShiftKeyMask) > 0);
if(contentFilters == nil) {
NSLog(@"Fatal error while retrieving content filters. No filters found.");