Commit 2486a199 authored by rob_strong%exchangecode.com's avatar rob_strong%exchangecode.com
Browse files

Bug 324314 - 'Use this theme' for the default theme is dimmed when non-default...

Bug 324314 - 'Use this theme' for the default theme is dimmed when non-default theme selected. r=bsmedberg
parent e660296f
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -3238,8 +3238,6 @@ 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();
    
    // Make the extensions datasource consistent if it isn't already.
@@ -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];