mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
[#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:
parent
9e7d27dcda
commit
977fb606eb
@ -37,6 +37,7 @@ http://www.hardcoded.net/licenses/bsd_license
|
|||||||
problemDialog = [[ProblemDialog alloc] initWithPyRef:[model problemDialog]];
|
problemDialog = [[ProblemDialog alloc] initWithPyRef:[model problemDialog]];
|
||||||
deletionOptions = [[DeletionOptions alloc] initWithPyRef:[model deletionOptions]];
|
deletionOptions = [[DeletionOptions alloc] initWithPyRef:[model deletionOptions]];
|
||||||
[self initResultColumns];
|
[self initResultColumns];
|
||||||
|
[[table columns] setColumnsAsReadOnly];
|
||||||
[self fillColumnsMenu];
|
[self fillColumnsMenu];
|
||||||
[matches setTarget:self];
|
[matches setTarget:self];
|
||||||
[matches setDoubleAction:@selector(openClicked)];
|
[matches setDoubleAction:@selector(openClicked)];
|
||||||
@ -232,7 +233,7 @@ http://www.hardcoded.net/licenses/bsd_license
|
|||||||
|
|
||||||
- (void)renameSelected
|
- (void)renameSelected
|
||||||
{
|
{
|
||||||
NSInteger col = [matches columnWithIdentifier:@"0"];
|
NSInteger col = [matches columnWithIdentifier:@"name"];
|
||||||
NSInteger row = [matches selectedRow];
|
NSInteger row = [matches selectedRow];
|
||||||
[matches editColumn:col row:row withEvent:[NSApp currentEvent] select:YES];
|
[matches editColumn:col row:row withEvent:[NSApp currentEvent] select:YES];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user