Bug 139471 Rewrite of the personal toolbar drag and drop observer patch=pierrechanial@netscape.net, r=timeless, sr=ben

(maybe you should increment the version number to 2.1)


git-svn-id: svn://10.0.0.236/trunk@235798 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mac.com
2007-09-12 17:50:03 +00:00
parent 2ddbb7814b
commit 78c81ad374

View File

@@ -2678,7 +2678,7 @@ nsBookmarksService::CreateFolderWithDetails(const PRUnichar* aName,
// Add to container.
if (aIndex >= 0)
rv = container->InsertElementAt(folderResource, !aIndex ? 1 : aIndex + 1, PR_TRUE);
rv = container->InsertElementAt(folderResource, !aIndex ? 1 : aIndex, PR_TRUE);
else
rv = container->AppendElement(folderResource);
@@ -2802,7 +2802,7 @@ nsBookmarksService::CreateBookmarkWithDetails(const PRUnichar* aName, const char
// Add to container.
if (aIndex >= 0)
rv = container->InsertElementAt(bookmarkResource, !aIndex ? 1 : aIndex + 1, PR_TRUE);
rv = container->InsertElementAt(bookmarkResource, !aIndex ? 1 : aIndex, PR_TRUE);
else
rv = container->AppendElement(bookmarkResource);
@@ -4234,7 +4234,7 @@ nsBookmarksService::insertBookmarkItem(nsIRDFResource *aRelativeNode,
if (NS_FAILED(rv)) return rv;
// Add to container.
rv = container->InsertElementAt(newResource, !relNodeIdx ? 1 : relNodeIdx + 1, PR_TRUE);
rv = container->InsertElementAt(newResource, !relNodeIdx ? 1 : relNodeIdx, PR_TRUE);
return rv;
}