Skip to content
Permalink
Browse files

Call m_menumgr->deletingMenu from quitMenu in addition to destructor

This fixes the bug where noMenuActive() keeps returning false after
closing a menu until the mouse is moved, rendering the keyboard
unusable (the_game calls input->clear() every frame when
noMenuActive() is false).
  • Loading branch information
kahrl committed Jun 3, 2013
1 parent 64befef commit 9fe74a34ead5b774d8d0bf95d4ec83f9b323c9c6
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/modalMenu.h
@@ -99,6 +99,7 @@ class GUIModalMenu : public gui::IGUIElement
allowFocusRemoval(true);
// This removes Environment's grab on us
Environment->removeFocus(this);
m_menumgr->deletingMenu(this);
this->remove();
}

0 comments on commit 9fe74a3

Please sign in to comment.