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:
parent
8d81b6f69d
commit
51e8309edb
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue