Bug 407872: Deleting items from 'most visited' smart bookmark folders on the toolbar doesn't work (using the context menu), patch by Marco Bonardo <mak77@supereva.it>, r=mano, a=beltzner

This commit is contained in:
gavin@gavinsharp.com 2008-04-17 19:01:30 -07:00
Родитель 96b8f79320
Коммит 3d4a1de909
1 изменённых файлов: 9 добавлений и 0 удалений

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

@ -866,6 +866,15 @@ PlacesController.prototype = {
transactions.push(PlacesUIUtils.ptm.untagURI(uri, [tagItemId]));
continue;
}
else if (PlacesUtils.nodeIsQuery(node.parent) &&
asQuery(node.parent).queryOptions.queryType ==
Ci.nsINavHistoryQueryOptions.QUERY_TYPE_HISTORY &&
node.uri) {
// remove page from history, history deletes are not undoable
var bhist = PlacesUtils.history.QueryInterface(Ci.nsIBrowserHistory);
bhist.removePage(PlacesUtils._uri(node.uri));
continue;
}
transactions.push(PlacesUIUtils.ptm.removeItem(node.itemId));
}