Tracker: Unchecked dynamic_cast, CID 1210856
This commit is contained in:
parent
ce04484e6b
commit
e85fa8f787
@ -2638,8 +2638,11 @@ FindPanel::AddAttributeControls(int32 gridRow)
|
|||||||
|
|
||||||
// target everything
|
// target everything
|
||||||
menu->SetTargetForItems(this);
|
menu->SetTargetForItems(this);
|
||||||
for (int32 index = menu->CountItems() - 1; index >= 0; index--)
|
for (int32 index = menu->CountItems() - 1; index >= 0; index--) {
|
||||||
menu->SubmenuAt(index)->SetTargetForItems(this);
|
BMenu* submenuAtIndex = menu->SubmenuAt(index);
|
||||||
|
if (submenuAtIndex != NULL)
|
||||||
|
submenuAtIndex->SetTargetForItems(this);
|
||||||
|
}
|
||||||
|
|
||||||
// populate mime popup
|
// populate mime popup
|
||||||
AddMimeTypeAttrs(menu);
|
AddMimeTypeAttrs(menu);
|
||||||
|
Loading…
Reference in New Issue
Block a user