aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-04-07 20:14:56 +0000
committerrowanbeentje <rowan@beent.je>2012-04-07 20:14:56 +0000
commited7a963686d3682eeeb0232df4f3b62921db82c3 (patch)
tree863b0e315fd020a9ea4dd12f6eefa4d6a05c638f
parent70a0d9a84d4623295a8de241854cc0c9364f1673 (diff)
downloadsequelpro-ed7a963686d3682eeeb0232df4f3b62921db82c3.tar.gz
sequelpro-ed7a963686d3682eeeb0232df4f3b62921db82c3.tar.bz2
sequelpro-ed7a963686d3682eeeb0232df4f3b62921db82c3.zip
- Fix process list filtering to handle new NSNumber id/time formatting (change mode for sorting, iirc). This addresses Issue #1315.
-rw-r--r--Source/SPProcessListController.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPProcessListController.m b/Source/SPProcessListController.m
index e2b1d471..f1aae941 100644
--- a/Source/SPProcessListController.m
+++ b/Source/SPProcessListController.m
@@ -796,12 +796,12 @@ static const NSString *SPTableViewIDColumnIdentifier = @"Id";
// Perform filtering
for (NSDictionary *process in processes)
{
- if (([[process objectForKey:@"Id"] rangeOfString:filterString options:NSCaseInsensitiveSearch].location != NSNotFound) ||
+ if (([[[process objectForKey:@"Id"] stringValue] rangeOfString:filterString options:NSCaseInsensitiveSearch].location != NSNotFound) ||
([[process objectForKey:@"User"] rangeOfString:filterString options:NSCaseInsensitiveSearch].location != NSNotFound) ||
([[process objectForKey:@"Host"] rangeOfString:filterString options:NSCaseInsensitiveSearch].location != NSNotFound) ||
((![[process objectForKey:@"db"] isNSNull]) && ([[process objectForKey:@"db"] rangeOfString:filterString options:NSCaseInsensitiveSearch].location != NSNotFound)) ||
([[process objectForKey:@"Command"] rangeOfString:filterString options:NSCaseInsensitiveSearch].location != NSNotFound) ||
- ([[process objectForKey:@"Time"] rangeOfString:filterString options:NSCaseInsensitiveSearch].location != NSNotFound) ||
+ ([[[process objectForKey:@"Time"] stringValue] rangeOfString:filterString options:NSCaseInsensitiveSearch].location != NSNotFound) ||
((![[process objectForKey:@"State"] isNSNull]) && ([[process objectForKey:@"State"] rangeOfString:filterString options:NSCaseInsensitiveSearch].location != NSNotFound)) ||
((![[process objectForKey:@"Info"] isNSNull]) && ([[process objectForKey:@"Info"] rangeOfString:filterString options:NSCaseInsensitiveSearch].location != NSNotFound)))
{