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:
Fred Kiefer 2007-09-10 11:32:56 +00:00
parent be4091bbf7
commit 34a7efe242
2 changed files with 11 additions and 0 deletions

View file

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