diff options
author | Stuart Connolly <stuart02@gmail.com> | 2014-01-19 15:55:52 +0000 |
---|---|---|
committer | Stuart Connolly <stuart02@gmail.com> | 2014-01-19 15:55:52 +0000 |
commit | 773cf8b0ee231da963c2da62590e9bed7f5e6252 (patch) | |
tree | 5f7d08ea89d976ebd3167f7aba1ee4e10e5b0e27 | |
parent | 111b47c047923c629b20e488bafd522882fcd5ca (diff) | |
download | sequelpro-773cf8b0ee231da963c2da62590e9bed7f5e6252.tar.gz sequelpro-773cf8b0ee231da963c2da62590e9bed7f5e6252.tar.bz2 sequelpro-773cf8b0ee231da963c2da62590e9bed7f5e6252.zip |
when displaying binary data, make sure we're checking the display as hex option to so we know what color to use.
-rw-r--r-- | Source/SPTableContentDelegate.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/SPTableContentDelegate.m b/Source/SPTableContentDelegate.m index ac2d69ae..915b1ede 100644 --- a/Source/SPTableContentDelegate.m +++ b/Source/SPTableContentDelegate.m @@ -511,7 +511,9 @@ NSString *columnType = [columnDefinition objectForKey:@"typegrouping"]; // Find a more reliable way of doing this check - if ([columnType isEqualToString:@"binary"] && [[self tableView:tableContentView objectValueForTableColumn:tableColumn row:rowIndex] hasPrefix:@"0x"]) { + if ([columnType isEqualToString:@"binary"] && + [prefs boolForKey:SPDisplayBinaryDataAsHex] && + [[self tableView:tableContentView objectValueForTableColumn:tableColumn row:rowIndex] hasPrefix:@"0x"]) { [cell setTextColor:rowIndex == [tableContentView selectedRow] ? whiteColor : blueColor]; } |