now handles also the case when all specifiers are solved, and behaves as if we were asked the Messenger
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17837 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
c4dde2f738
commit
a58450492a
@ -184,14 +184,13 @@ BHandler::MessageReceived(BMessage *message)
|
|||||||
const char *prop;
|
const char *prop;
|
||||||
|
|
||||||
status_t err = message->GetCurrentSpecifier(&cur, &specifier, &form, &prop);
|
status_t err = message->GetCurrentSpecifier(&cur, &specifier, &form, &prop);
|
||||||
if (err == B_OK) {
|
|
||||||
bool known = false;
|
bool known = false;
|
||||||
if (strcmp(prop, "Suites") == 0) {
|
if (index < 0 || (strcmp(prop, "Messenger") == 0)) {
|
||||||
err = GetSupportedSuites(&reply);
|
|
||||||
known = true;
|
|
||||||
} else if (strcmp(prop, "Messenger") == 0) {
|
|
||||||
err = reply.AddMessenger("result", this);
|
err = reply.AddMessenger("result", this);
|
||||||
known = true;
|
known = true;
|
||||||
|
} else if (strcmp(prop, "Suites") == 0) {
|
||||||
|
err = GetSupportedSuites(&reply);
|
||||||
|
known = true;
|
||||||
} else if (strcmp(prop, "InternalName") == 0) {
|
} else if (strcmp(prop, "InternalName") == 0) {
|
||||||
err = reply.AddString("result", Name());
|
err = reply.AddString("result", Name());
|
||||||
known = true;
|
known = true;
|
||||||
@ -203,7 +202,6 @@ BHandler::MessageReceived(BMessage *message)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// let's try next handler
|
// let's try next handler
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user