зеркало из https://github.com/mozilla/gecko-dev.git
Append an nsISupports rather than a folder.
This commit is contained in:
Родитель
15a6b66800
Коммит
b60faf2d75
|
@ -227,7 +227,9 @@ nsresult nsMsgLocalMailFolder::AddSubfolder(nsAutoString name, nsIMsgFolder **ch
|
|||
else if(name == "Templates")
|
||||
folder->SetFlag(MSG_FOLDER_FLAG_TEMPLATES);
|
||||
|
||||
mSubFolders->AppendElement(folder);
|
||||
nsCOMPtr<nsISupports> folderSupports = do_QueryInterface(folder);
|
||||
if(folderSupports)
|
||||
mSubFolders->AppendElement(folderSupports);
|
||||
folder->SetParent(this);
|
||||
*child = folder;
|
||||
NS_ADDREF(*child);
|
||||
|
|
Загрузка…
Ссылка в новой задаче