From fd28f792ab1f732463e5416c7876c5dc7a96f5c8 Mon Sep 17 00:00:00 2001 From: auria Date: Sat, 13 Nov 2010 23:31:37 +0000 Subject: [PATCH] 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 --- src/guiengine/event_handler.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/guiengine/event_handler.cpp b/src/guiengine/event_handler.cpp index 3a22b1f62..f90596ebe 100644 --- a/src/guiengine/event_handler.cpp +++ b/src/guiengine/event_handler.cpp @@ -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); + } } // -----------------------------------------------------------------------------