Skip to content

Instantly share code, notes, and snippets.

@kahrl
Created June 1, 2013 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kahrl/5691120 to your computer and use it in GitHub Desktop.
Save kahrl/5691120 to your computer and use it in GitHub Desktop.
diff --git a/src/modalMenu.h b/src/modalMenu.h
index d19b4e2..62bfabc 100644
--- a/src/modalMenu.h
+++ b/src/modalMenu.h
@@ -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();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment