mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
nsBrowserWindow.cpp:3220
change if (nsnull == menu) { to if (NS_OK == rv) { which makes submenus be added correctly.
This commit is contained in:
parent
461243c902
commit
f21684a83b
@ -3217,7 +3217,7 @@ nsIMenu * CreateMenu(nsIMenu * aMenu, const nsString & aName, char aMneu)
|
||||
nsnull,
|
||||
kIMenuIID,
|
||||
(void**)&menu);
|
||||
if (nsnull == menu) {
|
||||
if (NS_OK == rv) {
|
||||
menu->Create(aMenu, aName);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user