Following recent changes (Axel's token stuff or Message4 impl) I could not launch a single application/window in app_server. This fixes the problem. Note I always test with DEBUG=1. Am I the only one who had this problem?

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15033 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adi Oanca 2005-11-19 16:22:39 +00:00
parent 17de8ec214
commit 0139f287b4
2 changed files with 3 additions and 3 deletions

View File

@ -1261,7 +1261,7 @@ BLooper::task_looper()
// Get the target handler
// Use BMessage friend functions to determine if we are using the
// preferred handler, or if a target has been specified
BHandler* handler;
BHandler* handler = NULL;
if (_use_preferred_target_(fLastMessage)) {
PRINT(("LOOPER: use preferred target\n"));
handler = fPreferred;

View File

@ -2247,13 +2247,13 @@ BWindow::task_looper()
// Use the private BMessage accessor to determine if we are
// using the preferred handler, or if a target has been
// specified
BHandler *handler;
BHandler *handler = NULL;
BMessage::Private messagePrivate(fLastMessage);
bool usePreferred = messagePrivate.UsePreferredTarget();
#else
// Use BMessage friend functions to determine if we are using the
// preferred handler, or if a target has been specified
BHandler* handler;
BHandler* handler = NULL;
bool usePreferred = _use_preferred_target_(fLastMessage);
#endif
if (usePreferred) {