From a71c042d1536c36aaa40655852014420ab73c02f Mon Sep 17 00:00:00 2001 From: "neil%parkwaycc.co.uk" Date: Fri, 18 Feb 2005 11:19:10 +0000 Subject: [PATCH] Bug 273311 Deleting an account/identity/server also deletes some higher numbered accounts/identities/servers p=t.bugz@lament.cjb.net r=me sr=bienvenu git-svn-id: svn://10.0.0.236/trunk@169373 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mailnews/base/src/nsMsgAccount.cpp | 1 + mozilla/mailnews/base/util/nsMsgIdentity.cpp | 1 + mozilla/mailnews/base/util/nsMsgIncomingServer.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/mozilla/mailnews/base/src/nsMsgAccount.cpp b/mozilla/mailnews/base/src/nsMsgAccount.cpp index 525e9cc75b9..743fb944e8e 100644 --- a/mozilla/mailnews/base/src/nsMsgAccount.cpp +++ b/mozilla/mailnews/base/src/nsMsgAccount.cpp @@ -475,6 +475,7 @@ nsMsgAccount::ClearAllValues() nsresult rv; nsCAutoString rootPref("mail.account."); rootPref += m_accountKey; + rootPref += '.'; rv = getPrefService(); if (NS_FAILED(rv)) diff --git a/mozilla/mailnews/base/util/nsMsgIdentity.cpp b/mozilla/mailnews/base/util/nsMsgIdentity.cpp index 55526d6087d..05ea8d47026 100644 --- a/mozilla/mailnews/base/util/nsMsgIdentity.cpp +++ b/mozilla/mailnews/base/util/nsMsgIdentity.cpp @@ -436,6 +436,7 @@ nsMsgIdentity::ClearAllValues() nsCAutoString rootPref("mail.identity."); rootPref += m_identityKey; + rootPref += '.'; PRUint32 childCount; char** childArray; diff --git a/mozilla/mailnews/base/util/nsMsgIncomingServer.cpp b/mozilla/mailnews/base/util/nsMsgIncomingServer.cpp index f19345dc18d..64f1bcd7833 100644 --- a/mozilla/mailnews/base/util/nsMsgIncomingServer.cpp +++ b/mozilla/mailnews/base/util/nsMsgIncomingServer.cpp @@ -1127,6 +1127,7 @@ nsMsgIncomingServer::ClearAllValues() { nsCAutoString rootPref("mail.server."); rootPref += m_serverKey; + rootPref += '.'; PRUint32 childCount; char** childArray;