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).
This commit is contained in:
Kahrl 2013-06-02 17:53:20 +02:00
parent 64befefcfc
commit 9fe74a34ea

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