From 94f814b32c25067e0f92be00a4ca935aa8ff2124 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Wed, 9 May 2007 23:16:19 +0000 Subject: [PATCH] fHandlerToken can be equal to B_PREFERRED_TOKEN git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21096 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/app/Messenger.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/kits/app/Messenger.cpp b/src/kits/app/Messenger.cpp index dc46576dc3..c9ce8ba8b9 100644 --- a/src/kits/app/Messenger.cpp +++ b/src/kits/app/Messenger.cpp @@ -184,7 +184,9 @@ BHandler * BMessenger::Target(BLooper** _looper) const { 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, (void**)&handler); if (_looper)