aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-08-03 21:12:32 +0000
committerstuconnolly <stuart02@gmail.com>2009-08-03 21:12:32 +0000
commitd9364f799a323371ca7c45a6f6d2dd338ac01a7a (patch)
tree8b6f324696f5f4d7c74350760b0be5a4b7e3fd7e /Source
parent20ad5eaa3826dc8b5d1fb5496a3c6f49d802c632 (diff)
downloadsequelpro-d9364f799a323371ca7c45a6f6d2dd338ac01a7a.tar.gz
sequelpro-d9364f799a323371ca7c45a6f6d2dd338ac01a7a.tar.bz2
sequelpro-d9364f799a323371ca7c45a6f6d2dd338ac01a7a.zip
This shouldn't actually be negated as a return value of YES indicating that NULLs are allowed is correct and we can color it if it also matches the user's NULL placeholder.
Diffstat (limited to 'Source')
-rw-r--r--Source/TableContent.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m
index 93929d00..eaa83905 100644
--- a/Source/TableContent.m
+++ b/Source/TableContent.m
@@ -1882,7 +1882,7 @@
// of the user's NULL value preference which was set in the result array when it was retrieved (see fetchResultAsArray).
// Also, as an added measure check that the table column actually allows NULLs to make sure we don't change a cell that
// happens to have a value matching the NULL placeholder, but the column doesn't allow NULLs.
- [cell setTextColor:([[cell stringValue] isEqualToString:[prefs objectForKey:@"NullValue"]] && ![[column objectForKey:@"null"] boolValue]) ? [NSColor lightGrayColor] : [NSColor blackColor]];
+ [cell setTextColor:([[cell stringValue] isEqualToString:[prefs objectForKey:@"NullValue"]] && [[column objectForKey:@"null"] boolValue]) ? [NSColor lightGrayColor] : [NSColor blackColor]];
}
// Check if loading of text/blob fields is disabled