Bug 520764 - gFolderTree.unload takes filename to save status to, but does not
authorPrasad Sunkari <prasad@medhas.org>
Wed, 07 Oct 2009 11:37:33 +0530
changeset 4068 6d8ae522bfc9d54b637d04d3df0e17f60db0b772
parent 4067 e135102e93a529b0b9f603d23698cd69f7e0616e
child 4069 e6822b5c172aeeda9fa1a792e1792d8c7267ab53
push idunknown
push userunknown
push dateunknown
bugs520764
Bug 520764 - gFolderTree.unload takes filename to save status to, but does not use it! r=Standard8,a=Standard8
mail/base/content/folderPane.js
--- a/mail/base/content/folderPane.js
+++ b/mail/base/content/folderPane.js
@@ -147,17 +147,17 @@ let gFolderTreeView = {
     session.RemoveFolderListener(this);
 
     if (aJSONFile) {
       // Write out our json file...
       let JSON = Cc["@mozilla.org/dom/json;1"].createInstance(Ci.nsIJSON);
       let data = JSON.encode(this._persistOpenMap);
       let file = Cc["@mozilla.org/file/directory_service;1"]
                     .getService(Ci.nsIProperties).get("ProfD", Ci.nsIFile);
-      file.append("folderTree.json");
+      file.append(aJSONFile);
       let foStream = Cc["@mozilla.org/network/file-output-stream;1"]
                         .createInstance(Ci.nsIFileOutputStream);
 
       foStream.init(file, 0x02 | 0x08 | 0x20, 0666, 0);
       foStream.write(data, data.length);
       foStream.close();
     }
   },