Wallpaper for bug 294183 just to reduce the crashing r+sr=bz a=bsmedberg

This commit is contained in:
neil%parkwaycc.co.uk 2005-08-02 12:00:22 +00:00
Родитель 1fa9c0c81b
Коммит 9fe40c5630
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -1375,7 +1375,8 @@ NS_IMETHODIMP nsMenuPopupFrame::SetCurrentMenuItem(nsIMenuFrame* aMenuItem)
PRBool isOpen = PR_FALSE;
mCurrentMenu->MenuIsOpen(isOpen);
mCurrentMenu->SelectMenu(PR_FALSE);
if (isOpen) {
// XXX bug 294183 sometimes mCurrentMenu gets cleared
if (mCurrentMenu && isOpen) {
// Don't close up immediately.
// Kick off a close timer.
KillCloseTimer(); // Ensure we don't have another stray waiting closure.