mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
use tag instead of represented object for group values in the menu items
This commit is contained in:
@@ -336,7 +336,7 @@ GroupsWindowController * fGroupsWindowInstance = nil;
|
||||
NSMenuItem * item = [[NSMenuItem alloc] initWithTitle: NSLocalizedString(@"None", "Groups -> Menu") action: action
|
||||
keyEquivalent: @""];
|
||||
[item setTarget: target];
|
||||
[item setRepresentedObject: [NSNumber numberWithInt: -1]];
|
||||
[item setTag: -1];
|
||||
[menu addItem: item];
|
||||
[item release];
|
||||
|
||||
@@ -358,7 +358,7 @@ GroupsWindowController * fGroupsWindowInstance = nil;
|
||||
[item setImage: icon];
|
||||
[icon release];
|
||||
|
||||
[item setRepresentedObject: [dict objectForKey: @"Index"]];
|
||||
[item setTag: [[dict objectForKey: @"Index"] intValue]];
|
||||
|
||||
[menu addItem: item];
|
||||
[item release];
|
||||
|
||||
Reference in New Issue
Block a user