fixed a crash into the debugger because the looper was not locked in BMenuBar::Track(), Stefano, please review...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13173 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -443,8 +443,11 @@ BMenuBar::Track(int32 *action, int32 startIndex, bool showMenu)
|
||||
window->Unlock();
|
||||
}
|
||||
|
||||
if (resultItem != NULL)
|
||||
if (resultItem != NULL) {
|
||||
window->Lock();
|
||||
resultItem->Invoke();
|
||||
window->Unlock();
|
||||
}
|
||||
|
||||
return resultItem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user