Skip to content
Snippets Groups Projects
Commit ec4c37a0 authored by Julien Michel's avatar Julien Michel
Browse files

BUG: Fixing a bug in the widget controller

parent dd6e1451
No related branches found
No related tags found
No related merge requests found
...@@ -66,7 +66,8 @@ int ImageWidgetController::HandleWidgetEvent(std::string widgetId, int event) ...@@ -66,7 +66,8 @@ int ImageWidgetController::HandleWidgetEvent(std::string widgetId, int event)
// Get the current handler // Get the current handler
handler = it.Get(); handler = it.Get();
// Check if it listens to (widget,event) // Check if it listens to (widget,event)
found = found || handler->HandleWidgetEvent(widgetId,event); bool newFound = handler->HandleWidgetEvent(widgetId,event);
found = found || newFound;
++it; ++it;
} }
// If an handler was found, use it // If an handler was found, use it
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment