Append an nsISupports rather than a folder.

This commit is contained in:
putterman%netscape.com 1999-06-30 20:05:10 +00:00
Родитель 15a6b66800
Коммит b60faf2d75
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -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);