fix starting up in remembered offline state for thunderbird, sr=mscott, a=asa 295140

This commit is contained in:
bienvenu%nventure.com 2005-07-11 22:13:47 +00:00
parent 103df7ace7
commit c87d4a6ac2

View File

@ -114,7 +114,7 @@ var nsOfflineStartup =
{
debug("observe: " + aTopic);
if (aTopic == "profile-approve-change")
if (aTopic == "profile-change-net-teardown")
{
debug("remembering offline state");
var prefs = Components.classes["@mozilla.org/preferences-service;1"]
@ -128,7 +128,7 @@ var nsOfflineStartup =
var observerService = Components.classes["@mozilla.org/observer-service;1"]
.getService(Components.interfaces.nsIObserverService);
observerService.addObserver(this, "profile-after-change", false);
observerService.addObserver(this, "profile-approve-change", false);
observerService.addObserver(this, "profile-change-net-teardown", false);
}
else if (aTopic == "profile-after-change")
{