From 5672fac31a264201ed415ab681be4a8c59e9bbb4 Mon Sep 17 00:00:00 2001 From: "florian%queze.net" Date: Sun, 10 Feb 2008 13:03:10 +0000 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) {