mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 21:37:39 +00:00
Corrected dismissing of popup button cell menu.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21270 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
162d86266e
commit
8293b1e6a3
2 changed files with 12 additions and 2 deletions
|
@ -90,7 +90,10 @@ static NSImage *_pbc_image[2];
|
|||
* while the popup is still displayed. In that case the notification
|
||||
* center would still send notifications to the deallocated cell.
|
||||
*/
|
||||
[self dismissPopUp];
|
||||
if ([[_menu window] isVisible])
|
||||
{
|
||||
[self dismissPopUp];
|
||||
}
|
||||
/*
|
||||
* We don't use methods here to clean up the selected item, the menu
|
||||
* item and the menu as these methods internally update the menu,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue