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:
parent
211be12926
commit
96f9949a2d
@ -3272,6 +3272,8 @@ BMenu*
|
||||
BContainerWindow::AddMimeMenu(const BMimeType& mimeType, bool isSuperType,
|
||||
BMenu* menu, int32 start)
|
||||
{
|
||||
AutoLock<BLooper> _(menu->Looper());
|
||||
|
||||
if (!mimeType.IsValid())
|
||||
return NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user