From 2486a199536d93047742cd1f864c7a3335f95918 Mon Sep 17 00:00:00 2001 From: "rob_strong%exchangecode.com" Date: Fri, 17 Feb 2006 19:08:30 +0000 Subject: [PATCH] Bug 324314 - 'Use this theme' for the default theme is dimmed when non-default theme selected. r=bsmedberg --- toolkit/mozapps/extensions/src/nsExtensionManager.js.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/toolkit/mozapps/extensions/src/nsExtensionManager.js.in b/toolkit/mozapps/extensions/src/nsExtensionManager.js.in index fc0485ddba1a..da72ea5916d2 100644 --- a/toolkit/mozapps/extensions/src/nsExtensionManager.js.in +++ b/toolkit/mozapps/extensions/src/nsExtensionManager.js.in @@ -3238,9 +3238,7 @@ ExtensionManager.prototype = { // Version mismatch, we have to load the extensions datasource and do // version checking. Time hit here doesn't matter since this doesn't happen // all that often. - var extensionsDS = getFile(KEY_PROFILEDIR, [FILE_EXTENSIONS]); - if (!extensionsDS.exists()) - this._upgradeFromV10(); + this._upgradeFromV10(); // Make the extensions datasource consistent if it isn't already. var isDirty = false; @@ -3340,6 +3338,10 @@ ExtensionManager.prototype = { if (profileDOMi && profileDOMi.exists()) removeDirRecursive(profileDOMi); + var extensionsDS = getFile(KEY_PROFILEDIR, [FILE_EXTENSIONS]); + if (!extensionsDS.exists()) + return; + // Prepare themes for installation // Only enumerate directories in the app-profile and app-global locations. var locations = [KEY_APP_PROFILE, KEY_APP_GLOBAL];