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