зеркало из https://github.com/mozilla/pjs.git
fix regression in local folder sub-folder handling due to nsFileSpec removal, sr=mscott, 375890
This commit is contained in:
Родитель
eb7dfcc939
Коммит
ee97c43b77
|
@ -397,6 +397,18 @@ nsMsgLocalMailFolder::GetSubFolders(nsIEnumerator* *result)
|
|||
path->Create(nsIFile::DIRECTORY_TYPE, 0755);
|
||||
|
||||
path->IsDirectory(&directory);
|
||||
if (!directory)
|
||||
{
|
||||
nsCOMPtr <nsIFile> dirFile;
|
||||
rv = path->Clone(getter_AddRefs(dirFile));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
nsCAutoString leafName;
|
||||
dirFile->GetNativeLeafName(leafName);
|
||||
leafName.AppendLiteral(".sbd");
|
||||
dirFile->SetNativeLeafName(leafName);
|
||||
path = do_QueryInterface(dirFile);
|
||||
path->IsDirectory(&directory);
|
||||
}
|
||||
|
||||
mInitialized = PR_TRUE; // need to set this flag here to avoid infinite recursion
|
||||
// we have to treat the root folder specially, because it's name
|
||||
|
|
Загрузка…
Ссылка в новой задаче