From c19163cc1271a0c99e561b46c09c4087d02fb579 Mon Sep 17 00:00:00 2001 From: "danm%netscape.com" Date: Fri, 21 May 1999 02:34:03 +0000 Subject: [PATCH] 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 --- mozilla/xpfe/appshell/src/nsWebShellWindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp b/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp index 135a1e64cd0..15b11b917f2 100644 --- a/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp +++ b/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp @@ -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 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() {