Bug 329524 r=joe.hughes ReplaceItem bookmark call doesn't update cache.

This commit is contained in:
brettw%gmail.com 2006-03-07 22:50:22 +00:00
parent a7070827d6
commit 3bf94f4f67

View File

@ -930,6 +930,13 @@ nsNavBookmarks::ReplaceItem(PRInt64 aFolder, nsIURI *aItem, nsIURI *aNewItem)
rv = transaction.Commit();
NS_ENSURE_SUCCESS(rv, rv);
// update the bookmark hash, something could have gone away, and something
// else could have been created
rv = UpdateBookmarkHashOnRemove(childID);
NS_ENSURE_SUCCESS(rv, rv);
rv = AddBookmarkToHash(newChildID, 0);
NS_ENSURE_SUCCESS(rv, rv);
ENUMERATE_WEAKARRAY(mObservers, nsINavBookmarkObserver,
OnItemReplaced(aFolder, aItem, aNewItem))