asynchronous version of Alert should have been broken, this looks more correct (not tested)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14637 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2005-11-02 13:09:21 +00:00
parent dbc61d6cf2
commit 2544aac3eb

View File

@ -332,10 +332,11 @@ BAlert::MessageReceived(BMessage* msg)
// Semaphore hasn't been created; we're running asynchronous
if (fInvoker) {
BMessage* out = fInvoker->Message();
if (out && (out->AddInt32("which", which) == B_OK
|| out->ReplaceInt32("which", which) == B_OK))
if (out && (out->ReplaceInt32("which", which) == B_OK
|| out->AddInt32("which", which) == B_OK))
fInvoker->Invoke();
}
PostMessage(B_QUIT_REQUESTED);
} else {
// Created semaphore means were running synchronously
fAlertVal = which;