mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 16:20:46 +00:00
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:
parent
be4091bbf7
commit
34a7efe242
2 changed files with 11 additions and 0 deletions
|
@ -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>
|
||||
|
||||
* Source/NSTableHeaderView.m,
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue