From 88073540a8fc09c0710148ee2546739639e8fed3 Mon Sep 17 00:00:00 2001 From: "dietrich@mozilla.com" Date: Tue, 6 May 2008 12:21:10 -0700 Subject: [PATCH] Bug 407443 - menus for query based folders (smart bookmarks, saved searches) not refreshed after deleting an item (for mak77@supereva.it, r=dietrich, a=schrep) --- browser/components/places/content/menu.xml | 11 +++++++---- browser/components/places/content/toolbar.xml | 16 +++++++++++++--- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/browser/components/places/content/menu.xml b/browser/components/places/content/menu.xml index 6307b5381b7b..2a6b3757d5b0 100755 --- a/browser/components/places/content/menu.xml +++ b/browser/components/places/content/menu.xml @@ -819,10 +819,13 @@ } } - if (popupToRebuild) - popupToRebuild._built = false; - else - this._self._built = false; + if (!popupToRebuild) + popupToRebuild = this._self; + popupToRebuild._built = false; + + // if the menupopup is open we should live-update it + if (popupToRebuild.parentNode.open) + this._self._rebuild(popupToRebuild); }, invalidateAll: function PMV_invalidateAll() { diff --git a/browser/components/places/content/toolbar.xml b/browser/components/places/content/toolbar.xml index 69efae46c58a..4df2eff0a12a 100755 --- a/browser/components/places/content/toolbar.xml +++ b/browser/components/places/content/toolbar.xml @@ -654,8 +654,13 @@ } } - if (popupToRebuild) + if (popupToRebuild) { popupToRebuild._built = false; + + // if the menupopup is open we should live-update it + if (popupToRebuild.parentNode.open) + this._self._rebuildPopup(popupToRebuild); + } }, invalidateAll: function TV_V_invalidateAll() { @@ -1025,9 +1030,14 @@ + + + +