aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableContent.m
diff options
context:
space:
mode:
authorStuart Connolly <stuart02@gmail.com>2014-01-20 00:24:38 +0000
committerStuart Connolly <stuart02@gmail.com>2014-01-20 00:24:38 +0000
commit0d1e5180d575e6191362ae4ba411d240da93c14d (patch)
tree9014cf9425cc74d8fe66868da8948753dd612c75 /Source/SPTableContent.m
parent2d299f2c13e6e0c7593592b22b4597d940fc90bf (diff)
downloadsequelpro-0d1e5180d575e6191362ae4ba411d240da93c14d.tar.gz
sequelpro-0d1e5180d575e6191362ae4ba411d240da93c14d.tar.bz2
sequelpro-0d1e5180d575e6191362ae4ba411d240da93c14d.zip
Force a table reload (just the view not the actual data retrieval) whenever the view binary data as hex option is toggled. Fixes #1875.
Diffstat (limited to 'Source/SPTableContent.m')
-rw-r--r--Source/SPTableContent.m7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index 6ddc8012..52d0efc6 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -4191,10 +4191,15 @@ static NSString *SPTableFilterSetDefaultOperator = @"SPTableFilterSetDefaultOper
// Table font preference changed
else if ([keyPath isEqualToString:SPGlobalResultTableFont]) {
NSFont *tableFont = [NSUnarchiver unarchiveObjectWithData:[change objectForKey:NSKeyValueChangeNewKey]];
- [tableContentView setRowHeight:2.0f+NSSizeToCGSize([@"{ǞṶḹÜ∑zgyf" sizeWithAttributes:[NSDictionary dictionaryWithObject:tableFont forKey:NSFontAttributeName]]).height];
+
+ [tableContentView setRowHeight:2.0f + NSSizeToCGSize([@"{ǞṶḹÜ∑zgyf" sizeWithAttributes:[NSDictionary dictionaryWithObject:tableFont forKey:NSFontAttributeName]]).height];
[tableContentView setFont:tableFont];
[tableContentView reloadData];
}
+ // Display binary data as Hex
+ else if ([keyPath isEqualToString:SPDisplayBinaryDataAsHex] && [tableContentView numberOfRows] > 0) {
+ [tableContentView reloadData];
+ }
#endif
}