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).mutilcraft-mt53
parent
64befefcfc
commit
9fe74a34ea
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue