Select new item when there isn't any selection.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25474 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2007-09-10 11:32:56 +00:00
parent 74b20f9065
commit 83dba0e1a3
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2007-09-10 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSPopUpButtonCell.m (-insertItemWithTitle:atIndex:):
Select new item when there isn't any selection.
2007-09-10 Fred Kiefer <FredKiefer@gmx.de> 2007-09-10 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSTableHeaderView.m, * Source/NSTableHeaderView.m,

View file

@ -359,6 +359,12 @@ static NSImage *_pbc_image[2];
// FIXME: The documentation is unclear what to set here. // FIXME: The documentation is unclear what to set here.
//[anItem setAction: [self action]]; //[anItem setAction: [self action]];
//[anItem setTarget: [self target]]; //[anItem setTarget: [self target]];
// Select the new item if there isn't any selection.
if (_selectedItem == nil)
{
[self selectItem: anItem];
}
} }
/** /**