Fix for 46749, regression from my earlier checkin. forgot to check for null before

looking for the menu parent. Doh!
This commit is contained in:
pinkerton%netscape.com 2000-07-28 04:10:12 +00:00
parent 4b5231a715
commit dcbd627f07

View File

@ -585,9 +585,11 @@ nsMenuFrame::OpenMenuInternal(PRBool aActivateFlag)
if (menuPopup) {
// inherit whether or not we're a context menu from the parent
PRBool parentIsContextMenu = PR_FALSE;
mMenuParent->GetIsContextMenu(parentIsContextMenu);
menuPopup->SetIsContextMenu(parentIsContextMenu);
if ( mMenuParent ) {
PRBool parentIsContextMenu = PR_FALSE;
mMenuParent->GetIsContextMenu(parentIsContextMenu);
menuPopup->SetIsContextMenu(parentIsContextMenu);
}
// Install a keyboard navigation listener if we're the root of the menu chain.
PRBool onMenuBar = PR_TRUE;