Work around to prevent clicking through lang popup

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7500 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2011-01-23 02:51:28 +00:00
parent f0369ad670
commit 6277443146

View File

@@ -234,6 +234,14 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name, cons
return;
}
// When the lang popup is shown, ignore all other widgets
// FIXME: for some reasons, irrlicht widgets appear to be click-through, this is why
// this hack is needed
if (m_lang_popup != NULL)
{
return;
}
// ---- A ribbon icon was clicked
std::string selection = ribbon->getSelectionIDString(PLAYER_ID_GAME_MASTER);