From 03a8d14c2648880d725cbbef5940c66c284da89a Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Thu, 11 Nov 1999 21:55:39 +0000 Subject: [PATCH] fix for #16341 from putterman, who gave me the fix: "Whenever you add something to RDF through an observer notification, RDF verifies that you really have it by calling HasAssertion. Our implementation of HasAssertion for adding a folder to a folder consists of seeing if the the child folder's parent is equal to the parent passed in. Because we weren't setting the parent, the child's parent was null which wasn't equal to the parent passed in and the whole operation failed. This prevents that from happening." git-svn-id: svn://10.0.0.236/trunk@53248 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mailnews/news/src/nsNewsFolder.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mozilla/mailnews/news/src/nsNewsFolder.cpp b/mozilla/mailnews/news/src/nsNewsFolder.cpp index 680fccc2eed..71bb7d59df6 100644 --- a/mozilla/mailnews/news/src/nsNewsFolder.cpp +++ b/mozilla/mailnews/news/src/nsNewsFolder.cpp @@ -230,6 +230,7 @@ nsMsgNewsFolder::AddSubfolder(nsAutoString name, nsIMsgFolder **child, char *set if(folderSupports) mSubFolders->AppendElement(folderSupports); *child = folder; + folder->SetParent(this); NS_ADDREF(*child); return rv;