зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
3ec33c9d88
Коммит
fb1dd64279
|
@ -241,22 +241,7 @@ nsMsgLocalMailFolder::CreateSubFolders(nsFileSpec &path)
|
|||
|
||||
rv = AddSubfolder(¤tFolderNameStr, 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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче