mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
fix deleting of tags from profile to happen immediately instead of upon restart, sr=mscott 345999
This commit is contained in:
parent
2d7edc75a0
commit
4697e3d83e
@ -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; */
|
||||
|
Loading…
Reference in New Issue
Block a user