aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-07-18 23:00:33 +0200
committerMax <post@wickenrode.com>2015-07-18 23:11:09 +0200
commita0d507f2afc7f4c73f25b081883e015e72346029 (patch)
tree12a31d15ec043f64eb23f83050e3390fcabf8f09
parent4002f28ba489690a2e2e694779785e035370bbfb (diff)
downloadsequelpro-a0d507f2afc7f4c73f25b081883e015e72346029.tar.gz
sequelpro-a0d507f2afc7f4c73f25b081883e015e72346029.tar.bz2
sequelpro-a0d507f2afc7f4c73f25b081883e015e72346029.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
-rw-r--r--Source/SPTableContent.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index 4cd21bb1..48200d80 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -1102,8 +1102,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.");