fHandlerToken can be equal to B_PREFERRED_TOKEN
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21096 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -184,7 +184,9 @@ BHandler *
|
|||||||
BMessenger::Target(BLooper** _looper) const
|
BMessenger::Target(BLooper** _looper) const
|
||||||
{
|
{
|
||||||
BHandler *handler = NULL;
|
BHandler *handler = NULL;
|
||||||
if (IsTargetLocal() && fHandlerToken > B_NULL_TOKEN) {
|
if (IsTargetLocal()
|
||||||
|
&& (fHandlerToken > B_NULL_TOKEN
|
||||||
|
|| fHandlerToken == B_PREFERRED_TOKEN)) {
|
||||||
gDefaultTokens.GetToken(fHandlerToken, B_HANDLER_TOKEN,
|
gDefaultTokens.GetToken(fHandlerToken, B_HANDLER_TOKEN,
|
||||||
(void**)&handler);
|
(void**)&handler);
|
||||||
if (_looper)
|
if (_looper)
|
||||||
|
|||||||
Reference in New Issue
Block a user