Fixed missing notification to dialogs

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6515 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2010-11-13 23:31:37 +00:00
parent 126eedce9e
commit fd28f792ab

View File

@ -456,7 +456,14 @@ void EventHandler::navigateDown(const int playerID, Input::InputType type, const
void EventHandler::sendEventToUser(GUIEngine::Widget* widget, std::string& name, const int playerID)
{
getCurrentScreen()->eventCallback(widget, name, playerID);
if (ModalDialog::isADialogActive())
{
ModalDialog::getCurrent()->processEvent(widget->m_properties[PROP_ID]);
}
else
{
getCurrentScreen()->eventCallback(widget, name, playerID);
}
}
// -----------------------------------------------------------------------------