From 8f884a5434ec4c1c8335730a3e85b6808e6923fe Mon Sep 17 00:00:00 2001 From: Fred Kiefer Date: Mon, 8 Oct 2001 08:19:50 +0000 Subject: [PATCH] [insertItemWithTitle:atIndex:] don't set the action and target for the item, so it will use the action from the popup button. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11110 72102866-910b-0410-8b05-ffd578937521 --- Source/NSPopUpButtonCell.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/NSPopUpButtonCell.m b/Source/NSPopUpButtonCell.m index a4d113c81..55eb0f99e 100644 --- a/Source/NSPopUpButtonCell.m +++ b/Source/NSPopUpButtonCell.m @@ -183,10 +183,9 @@ static NSImage *_pbc_image[2]; index = count; anItem = [_menu insertItemWithTitle: title - action: [self action] + action: NULL keyEquivalent: @"" atIndex: index]; - [anItem setTarget: [self target]]; } - (void) removeItemWithTitle: (NSString *)title