fix deleting of tags from profile to happen immediately instead of upon restart, sr=mscott 345999

This commit is contained in:
bienvenu%nventure.com 2006-07-26 21:23:21 +00:00
parent 2d7edc75a0
commit 4697e3d83e

View File

@ -163,12 +163,7 @@ NS_IMETHODIMP nsMsgTagService::DeleteKey(const nsACString &key)
// clear the associated prefs
nsCAutoString prefName("mailnews.tags.");
prefName.Append(key);
prefName.AppendLiteral(".tag");
// this is the rv we're going to return - it's the interesting one.§
nsresult rv = m_prefBranch->ClearUserPref(prefName.get());
prefName.Replace(prefName.Length() - 3, 3, NS_LITERAL_CSTRING("color"));
m_prefBranch->ClearUserPref(prefName.get());
return rv;
return m_prefBranch->DeleteBranch(prefName.get());
}
/* readonly attribute nsIStringEnumerator tagEnumerator; */