Call m_menumgr->deletingMenu from quitMenu in addition to destructor
authorKahrl <kahrl@gmx.net>
Sun, 2 Jun 2013 15:53:20 +0000 (17:53 +0200)
committerKahrl <kahrl@gmx.net>
Mon, 3 Jun 2013 13:25:48 +0000 (15:25 +0200)
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).

src/modalMenu.h

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