Bug 198137 Rename an address book and other areas of the product are not updated

patch by Standard8 <Mark Banner>, r+sr=bienvenu, a=asa
This commit is contained in:
cst%andrew.cmu.edu 2005-04-26 16:50:04 +00:00
Родитель a48b282029
Коммит bf13f43de8
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -486,6 +486,11 @@ NS_IMETHODIMP nsAbBSDirectory::ModifyDirectory(nsIAbDirectory *directory, nsIAbD
nsCOMPtr<nsIAbDirectory> 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<nsIAddrBookSession> abSession =
do_GetService(NS_ADDRBOOKSESSION_CONTRACTID, &rv);