Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 9fe74a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modalMenu.h
Expand Up @@ -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();
}

Expand Down

0 comments on commit 9fe74a3

Please sign in to comment.