forked from e16/e16
1
0
Fork 0

Fix potential crash in menu key press handling.

Could happen e.g. when pressing 'esc' while sliding.

SVN revision: 51945
This commit is contained in:
Kim Woelders 2010-09-07 14:34:36 +00:00
parent 8d81b6f69d
commit 51e8309edb
1 changed files with 2 additions and 1 deletions

View File

@ -1547,7 +1547,8 @@ MenuSelectItem(Menu * m, MenuItem * mi, int focus)
{
Mode_menus.active = m;
GrabKeyboardRelease();
GrabKeyboardSet(m->win);
if (m->win)
GrabKeyboardSet(m->win);
}
}