Fix TooltipManager: we cannot handle filtered message with the normal Widget::onProcessMessage() handler.

If we use the Widget::onProcessMessage() handler for filtered messages,
key-pressed messages would be handled by the Manager before the
focused widget.
This commit is contained in:
David Capello 2012-06-16 00:48:29 -03:00
parent 42bb192a24
commit 4afe591c54

View File

@ -66,7 +66,7 @@ bool TooltipManager::onProcessMessage(Message* msg)
m_timer->start();
}
}
break;
return false;
}
case JM_KEYPRESSED:
@ -79,8 +79,10 @@ bool TooltipManager::onProcessMessage(Message* msg)
if (m_timer)
m_timer->stop();
break;
return false;
}
return Widget::onProcessMessage(msg);
}