mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 405237 - "deleting "Unfiled Bookmarks" or "bookmarks menu" folders breaks places organizer (should be undeletable)" (Trailing spaces fix) [p=mak77@supereva.it (Marco Bonardo [MaK77]) r=Mano a=blocking1.9+ P1 for M10]
This commit is contained in:
parent
d5d4ab9daa
commit
58638809df
@ -279,15 +279,15 @@ PlacesController.prototype = {
|
||||
var root = this._view.getResultNode();
|
||||
|
||||
for (var i = 0; i < nodes.length; ++i) {
|
||||
// Disallow removing the view's root node
|
||||
// Disallow removing the view's root node
|
||||
if (nodes[i] == root)
|
||||
return false;
|
||||
|
||||
// Disallow removing the toolbar, menu and unfiled-bookmarks folders
|
||||
// Disallow removing the toolbar, menu and unfiled-bookmarks folders
|
||||
var nodeItemId = nodes[i].itemId;
|
||||
if (!aIsMoveCommand &&
|
||||
PlacesUtils.nodeIsFolder(nodes[i]) &&
|
||||
(nodeItemId == PlacesUtils.toolbarFolderId ||
|
||||
PlacesUtils.nodeIsFolder(nodes[i]) &&
|
||||
(nodeItemId == PlacesUtils.toolbarFolderId ||
|
||||
nodeItemId == PlacesUtils.unfiledBookmarksFolderId ||
|
||||
nodeItemId == PlacesUtils.bookmarksMenuFolderId))
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user