The parent menu of the attributes menu might be showing, thus it needs
to be locked before its font is retrieved or items are added. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40623 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -3272,6 +3272,8 @@ BMenu*
|
|||||||
BContainerWindow::AddMimeMenu(const BMimeType& mimeType, bool isSuperType,
|
BContainerWindow::AddMimeMenu(const BMimeType& mimeType, bool isSuperType,
|
||||||
BMenu* menu, int32 start)
|
BMenu* menu, int32 start)
|
||||||
{
|
{
|
||||||
|
AutoLock<BLooper> _(menu->Looper());
|
||||||
|
|
||||||
if (!mimeType.IsValid())
|
if (!mimeType.IsValid())
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user