mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Do not update selected item's state when changing the menu
This commit is contained in:
parent
c50ef9d8fa
commit
f5ebdcd1d2
1 changed files with 1 additions and 6 deletions
|
@ -181,12 +181,7 @@ static NSImage *_pbc_image[5];
|
|||
if (_selectedItem != nil)
|
||||
{
|
||||
// _selectedItem may be dead after the following ASSIGN statement,
|
||||
// so make sure we leave no dangling pointer behind and unset the
|
||||
// item's state if necessary.
|
||||
if (_pbcFlags.altersStateOfSelectedItem)
|
||||
{
|
||||
[_selectedItem setState: NSOffState];
|
||||
}
|
||||
// so make sure we leave no dangling pointer behind.
|
||||
_selectedItem = nil;
|
||||
}
|
||||
ASSIGN(_menu, menu);
|
||||
|
|
Loading…
Reference in a new issue