Bug 129428: Paste doesn't work in bookmark manager. Patch by ben@netscape.com, r=pierrechanial@netscape.net, sr=jag

This commit is contained in:
jaggernaut%netscape.com 2007-09-12 17:50:00 +00:00
Родитель de043ff664
Коммит a59ce831a1
1 изменённых файлов: 1 добавлений и 16 удалений

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

@ -3079,24 +3079,9 @@ nsBookmarksService::GetSynthesizedType(nsIRDFResource *aNode, nsIRDFNode **aType
// else is annotated)
PRBool isContainer = PR_FALSE;
(void)gRDFC->IsSeq(mInner, aNode, &isContainer);
if (isContainer)
{
*aType = kNC_Folder;
NS_ADDREF(*aType);
}
else
{
// only return bookmark type for nodes that actually exist
PRBool isBookmarkedFlag = PR_FALSE;
rv = IsBookmarkedInternal(aNode, &isBookmarkedFlag);
if (NS_FAILED(rv) || (rv == NS_RDF_NO_VALUE))
return(rv);
if (isBookmarkedFlag == PR_FALSE)
return(NS_RDF_NO_VALUE);
*aType = kNC_Bookmark;
*aType = isContainer ? kNC_Folder : kNC_Bookmark;
NS_ADDREF(*aType);
}
}
return(NS_OK);
}