155668 r=cavin sr=bienvenu Don't set the prettyName as mailboxName from db, causes problems for japanese local folder names.

This commit is contained in:
naving%netscape.com 2002-07-09 00:55:23 +00:00
Родитель 3ec33c9d88
Коммит fb1dd64279
1 изменённых файлов: 1 добавлений и 16 удалений

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

@ -241,22 +241,7 @@ nsMsgLocalMailFolder::CreateSubFolders(nsFileSpec &path)
rv = AddSubfolder(&currentFolderNameStr, getter_AddRefs(child));
if (child)
{
nsCOMPtr<nsIDBFolderInfo> folderInfo;
nsCOMPtr<nsIMsgDatabase> db;
child->GetDBFolderInfoAndDB(getter_AddRefs(folderInfo), getter_AddRefs(db));
if (folderInfo)
{
nsAutoString mailboxName;
folderInfo->GetMailboxName(&mailboxName);
if (!mailboxName.IsEmpty())
child->SetPrettyName(mailboxName.get());
else
child->SetPrettyName(currentFolderNameStr.get());
}
else
child->SetPrettyName(currentFolderNameStr.get());
}
child->SetPrettyName(currentFolderNameStr.get());
}
return rv;
}