From bf13f43de8280bc5ea656d751efa507c03a3a9cb Mon Sep 17 00:00:00 2001 From: "cst%andrew.cmu.edu" Date: Tue, 26 Apr 2005 16:50:04 +0000 Subject: [PATCH] Bug 198137 Rename an address book and other areas of the product are not updated patch by Standard8 , r+sr=bienvenu, a=asa --- mailnews/addrbook/src/nsAbBSDirectory.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mailnews/addrbook/src/nsAbBSDirectory.cpp b/mailnews/addrbook/src/nsAbBSDirectory.cpp index 0c5eea5fdb0..fdfa1d40910 100644 --- a/mailnews/addrbook/src/nsAbBSDirectory.cpp +++ b/mailnews/addrbook/src/nsAbBSDirectory.cpp @@ -486,6 +486,11 @@ NS_IMETHODIMP nsAbBSDirectory::ModifyDirectory(nsIAbDirectory *directory, nsIAbD nsCOMPtr modifiedDir; getDirectories.directories->GetElementAt (0, getter_AddRefs(modifiedDir)); + // First tell the directory it's new name + rv = modifiedDir->SetDirName(description.get()); + NS_ENSURE_SUCCESS(rv, rv); + + // Then tell everyone else. nsCOMPtr abSession = do_GetService(NS_ADDRBOOKSESSION_CONTRACTID, &rv);