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
This commit is contained in:
@@ -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) {
|
if (fNextHandler) {
|
||||||
// aren't filters done per handler?
|
// ToDo: take the handler's message filter into account!
|
||||||
fNextHandler->MessageReceived(message);
|
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");
|
printf("BHandler::MessageReceived(): B_MESSAGE_NOT_UNDERSTOOD");
|
||||||
message->PrintToStream();
|
message->PrintToStream();
|
||||||
message->SendReply(B_MESSAGE_NOT_UNDERSTOOD);
|
message->SendReply(B_MESSAGE_NOT_UNDERSTOOD);
|
||||||
|
|||||||
Reference in New Issue
Block a user