LoadMenuItem no longer adds the item to mMenuDelegates. Fixes bug 6446. written by saari, r=danm, a=chofmann

git-svn-id: svn://10.0.0.236/trunk@32444 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
danm%netscape.com
1999-05-21 02:34:03 +00:00
parent 6bc4c5b576
commit c19163cc12

View File

@@ -38,6 +38,7 @@
#include "nsIXULParentDocument.h"
#include "nsIXULPopupListener.h"
#include "nsIXULChildDocument.h"
#include "nsIDOMXULElement.h"
#include "nsRDFCID.h"
#include "nsGUIEvent.h"
@@ -596,7 +597,6 @@ NS_IMETHODIMP nsWebShellWindow::LoadMenuItem(
menuDelegate->SetMenuItem(pnsMenuItem);
nsIXULCommand * icmd;
if (NS_OK == menuDelegate->QueryInterface(kIXULCommandIID, (void**) &icmd)) {
mMenuDelegates.AppendElement(icmd);
nsCOMPtr<nsIMenuListener> listener(do_QueryInterface(menuDelegate));
if (listener)
@@ -1847,7 +1847,6 @@ void nsWebShellWindow::SetTitleFromXUL()
} // SetTitleFromXUL
#include "nsIDOMXULElement.h"
// show/hide contents according to the current chrome mask
void nsWebShellWindow::ShowAppropriateChrome()
{