From b182585d461b86abb37c838cc32e8802089485af Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Sat, 13 Feb 2010 14:08:37 +0100 Subject: [PATCH] Fixed column reloading which was broken since the mark-->marked rename. --- cocoa/base/ResultWindow.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cocoa/base/ResultWindow.m b/cocoa/base/ResultWindow.m index 3de22ecc..f0d99e74 100644 --- a/cocoa/base/ResultWindow.m +++ b/cocoa/base/ResultWindow.m @@ -107,12 +107,13 @@ http://www.hardcoded.net/licenses/hs_license } //Add columns and set widths for (NSString *colId in aColumnsOrder) { - if ([colId isEqual:@"marked"]) { + NSInteger colIndex = [colId integerValue]; + if ((colIndex == 0) && (![colId isEqual:@"0"])) { continue; } - NSTableColumn *col = [_resultColumns objectAtIndex:[colId intValue]]; + NSTableColumn *col = [_resultColumns objectAtIndex:colIndex]; NSNumber *width = [aColumnsWidth objectForKey:[col identifier]]; - NSMenuItem *mi = [columnsMenu itemWithTag:[colId intValue]]; + NSMenuItem *mi = [columnsMenu itemWithTag:colIndex]; if (width) { [col setWidth:[width floatValue]]; }