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:
parent
126eedce9e
commit
fd28f792ab
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user