From 04dc040e402efed83dedbbecfdeb3b38bcfff676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 19 May 2005 16:14:51 +0000 Subject: [PATCH] No more B_MESSAGE_NOT_UNDERSTOOD messages for standard messages. Added another ToDo item about missing filtering. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12734 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/app/Handler.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/kits/app/Handler.cpp b/src/kits/app/Handler.cpp index 6502ce95d3..c565a6373e 100644 --- a/src/kits/app/Handler.cpp +++ b/src/kits/app/Handler.cpp @@ -315,12 +315,13 @@ BHandler::MessageReceived(BMessage *message) } } - // ToDo: there is some more work need here (someone in the know should fill in)! + // ToDo: there is some more work needed here (someone in the know should fill in)! if (fNextHandler) { - // aren't filters done per handler? + // ToDo: take the handler's message filter into account! fNextHandler->MessageReceived(message); - } else if (message->what != B_MESSAGE_NOT_UNDERSTOOD) { + } else if (message->what != B_MESSAGE_NOT_UNDERSTOOD + && (message->WasDropped() || message->HasSpecifiers())) { printf("BHandler::MessageReceived(): B_MESSAGE_NOT_UNDERSTOOD"); message->PrintToStream(); message->SendReply(B_MESSAGE_NOT_UNDERSTOOD);