Permalink
Browse files

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
  • Loading branch information...
dmoagx committed Jul 18, 2015
1 parent de096a3 commit 78f82e0609dbd76bda3051cf6f5db4d1ed693739
Showing with 1 addition and 2 deletions.
  1. +1 −2 Source/SPTableContent.m
View
@@ -1103,8 +1103,7 @@ - (NSString *)tableFilterString
// 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.");

1 comment on commit 78f82e0

@jdwuzhere

This comment has been minimized.

jdwuzhere commented on 78f82e0 Jul 18, 2015

exactly. thanx!

Please sign in to comment.