From 977fb606eba3b1528712b593ea3134f73dcc1962 Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Tue, 31 Jul 2012 10:42:39 -0400 Subject: [PATCH] [#202 state:fixed] [#203 state:fixed] Made results table column read-only (they were mistakenly editable) and fixed the column ID edited by the Rename Selected action. --- cocoa/base/ResultWindow.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cocoa/base/ResultWindow.m b/cocoa/base/ResultWindow.m index a7fec9fa..11d696e2 100644 --- a/cocoa/base/ResultWindow.m +++ b/cocoa/base/ResultWindow.m @@ -37,6 +37,7 @@ http://www.hardcoded.net/licenses/bsd_license problemDialog = [[ProblemDialog alloc] initWithPyRef:[model problemDialog]]; deletionOptions = [[DeletionOptions alloc] initWithPyRef:[model deletionOptions]]; [self initResultColumns]; + [[table columns] setColumnsAsReadOnly]; [self fillColumnsMenu]; [matches setTarget:self]; [matches setDoubleAction:@selector(openClicked)]; @@ -232,7 +233,7 @@ http://www.hardcoded.net/licenses/bsd_license - (void)renameSelected { - NSInteger col = [matches columnWithIdentifier:@"0"]; + NSInteger col = [matches columnWithIdentifier:@"name"]; NSInteger row = [matches selectedRow]; [matches editColumn:col row:row withEvent:[NSApp currentEvent] select:YES]; }