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
parent 5d250491a3
commit f8aee4fbdb

View File

@ -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));
}