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).
experimental
Kahrl 2013-06-02 17:53:20 +02:00
parent 64befefcfc
commit 9fe74a34ea
1 changed files with 1 additions and 0 deletions

View File

@ -99,6 +99,7 @@ public:
allowFocusRemoval(true); allowFocusRemoval(true);
// This removes Environment's grab on us // This removes Environment's grab on us
Environment->removeFocus(this); Environment->removeFocus(this);
m_menumgr->deletingMenu(this);
this->remove(); this->remove();
} }