aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-08-03 16:06:28 +0000
committerstuconnolly <stuart02@gmail.com>2009-08-03 16:06:28 +0000
commit14bd0cf3680e261b979be98e792bafc5e8e1afd5 (patch)
tree02c95eab2e82ea4d515a9223b895addc97254de8
parent8c8fe9ea6f098aa8c78eb0086974251cf9c09224 (diff)
downloadsequelpro-14bd0cf3680e261b979be98e792bafc5e8e1afd5.tar.gz
sequelpro-14bd0cf3680e261b979be98e792bafc5e8e1afd5.tar.bz2
sequelpro-14bd0cf3680e261b979be98e792bafc5e8e1afd5.zip
When blob/text fields are loaded on demand also color them light gray if they are actually NULL.
-rw-r--r--Source/TableContent.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m
index 08f0aafb..18cd8e78 100644
--- a/Source/TableContent.m
+++ b/Source/TableContent.m
@@ -1909,7 +1909,7 @@
// Change the text color back to black
// This is necessary because NSTableView reuses
// the NSCell to draw further rows in the column
- [cell setTextColor:[NSColor blackColor]];
+ [cell setTextColor:([[cell stringValue] isEqualToString:[prefs objectForKey:@"NullValue"]] && [[column objectForKey:@"null"] boolValue]) ? [NSColor lightGrayColor] : [NSColor blackColor]];
}
}
}