Skip to content
Snippets Groups Projects
Commit 9fe74a34 authored by Kahrl's avatar Kahrl
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).
parent 64befefc
No related branches found
No related tags found
No related merge requests found
......@@ -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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment