fix for bug #393887: Star icon shouldn't be set for items in RSS / Live Bookmarks.

r=dietrich
This commit is contained in:
sspitzer%mozilla.org 2007-09-01 00:04:23 +00:00
Родитель c37ade6d64
Коммит f4d2606f2d
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -1502,11 +1502,11 @@ var PlacesUtils = {
var bmkIds = this.bookmarks.getBookmarkIdsForURI(aURI, {}); var bmkIds = this.bookmarks.getBookmarkIdsForURI(aURI, {});
for each (var bk in bmkIds) { for each (var bk in bmkIds) {
// Find the first folder which isn't a tag container // Find the first folder which isn't a tag container
var folder = this.bookmarks.getFolderIdForItem(bk); var parent = this.bookmarks.getFolderIdForItem(bk);
if (folder == this.placesRootId) if (parent == this.placesRootId)
return bk; return bk;
var parent = this.bookmarks.getFolderIdForItem(folder) var grandparent = this.bookmarks.getFolderIdForItem(parent);
if (parent != this.tagRootId && if (grandparent != this.tagRootId &&
!this.annotations.itemHasAnnotation(parent, "livemark/feedURI")) !this.annotations.itemHasAnnotation(parent, "livemark/feedURI"))
return bk; return bk;
} }