From a59ce831a1ae5e8b550abb99fd9721f0ec6931af Mon Sep 17 00:00:00 2001 From: "jaggernaut%netscape.com" Date: Wed, 12 Sep 2007 17:50:00 +0000 Subject: [PATCH] Bug 129428: Paste doesn't work in bookmark manager. Patch by ben@netscape.com, r=pierrechanial@netscape.net, sr=jag --- suite/browser/src/nsBookmarksService.cpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/suite/browser/src/nsBookmarksService.cpp b/suite/browser/src/nsBookmarksService.cpp index 9c56e1aaf7f..ac9f84d43bc 100644 --- a/suite/browser/src/nsBookmarksService.cpp +++ b/suite/browser/src/nsBookmarksService.cpp @@ -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); }