Fixed bug which was crashing the save panel when run from the menu.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5271 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 1999-11-25 02:51:38 +00:00
parent 95f2a31cd2
commit 5033ecc883

View file

@ -787,6 +787,8 @@ static float GSMenuBarHeight = 25.0; // A wild guess.
// Perform actions as needed.
if (index != -1 && !alreadyAttachedMenu)
{
// Stop the periodic events before performing the action
[NSEvent stopPeriodicEvents];
[menuv_menu performActionForItemAtIndex: index];
if (![menuv_menu isFollowTransient])