From 32a98d2b00a2dbd0644442f2c16e9cb39f589ee0 Mon Sep 17 00:00:00 2001 From: "florian@queze.net" Date: Sun, 10 Feb 2008 05:03:10 -0800 Subject: [PATCH] Bug 416471 - The action icon is wrong after opening and closing the Application Details dialog. r=gavin, a=blocking-firefox3+ --- browser/components/preferences/applications.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/browser/components/preferences/applications.js b/browser/components/preferences/applications.js index 6cb6cab8719..0f809346198 100755 --- a/browser/components/preferences/applications.js +++ b/browser/components/preferences/applications.js @@ -1716,8 +1716,10 @@ var gApplicationsPane = { // update the richlistitem too. Will be visible when selecting another row typeItem.setAttribute("actionDescription", this._describePreferredAction(handlerInfo)); - typeItem.setAttribute("actionIcon", - this._getIconURLForPreferredAction(handlerInfo)); + if (!this._setIconClassForPreferredAction(handlerInfo, typeItem)) { + typeItem.setAttribute("actionIcon", + this._getIconURLForPreferredAction(handlerInfo)); + } }, chooseApp: function(aEvent) {