don't forget to pass to BHandler
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17818 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
de0ca38e5a
commit
bcd6702900
@ -480,10 +480,9 @@ BShelf::MessageReceived(BMessage *msg)
|
||||
int32 what;
|
||||
const char *prop;
|
||||
int32 index;
|
||||
if (msg->GetCurrentSpecifier(&index, &specifier, &what, &prop) != B_OK) {
|
||||
BHandler::MessageReceived(msg);
|
||||
return;
|
||||
}
|
||||
if (msg->GetCurrentSpecifier(&index, &specifier, &what, &prop) != B_OK)
|
||||
return BHandler::MessageReceived(msg);
|
||||
|
||||
switch (msg->what) {
|
||||
case B_DELETE_PROPERTY:
|
||||
case B_GET_PROPERTY:
|
||||
@ -544,13 +543,16 @@ BShelf::MessageReceived(BMessage *msg)
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
return BHandler::MessageReceived(msg);
|
||||
|
||||
case B_COUNT_PROPERTIES:
|
||||
if (strcmp(prop, "Replicant") == 0) {
|
||||
err = replyMsg.AddInt32("result", CountReplicants());
|
||||
break;
|
||||
}
|
||||
break;
|
||||
return BHandler::MessageReceived(msg);
|
||||
};
|
||||
|
||||
if (err == B_BAD_SCRIPT_SYNTAX) {
|
||||
|
Loading…
Reference in New Issue
Block a user