[#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.

This commit is contained in:
Virgil Dupras 2012-07-31 10:42:39 -04:00
parent 9e7d27dcda
commit 977fb606eb
1 changed files with 2 additions and 1 deletions

View File

@ -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];
}