mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 441470 - Bookmark lost when dragged within folder shortcuts menus, r=dietrich
This commit is contained in:
parent
2a4f1b3c4e
commit
1c77fcd712
@ -290,9 +290,10 @@
|
|||||||
|
|
||||||
if (!xulNode.node) {
|
if (!xulNode.node) {
|
||||||
// if we are dragging over a non places node drop at the end
|
// if we are dragging over a non places node drop at the end
|
||||||
dropPoint.ip = new InsertionPoint(resultNode.itemId,
|
dropPoint.ip = new InsertionPoint(
|
||||||
-1,
|
PlacesUtils.getConcreteItemId(resultNode),
|
||||||
Ci.nsITreeView.DROP_ON);
|
-1,
|
||||||
|
Ci.nsITreeView.DROP_ON);
|
||||||
return dropPoint;
|
return dropPoint;
|
||||||
}
|
}
|
||||||
else if ((PlacesUtils.nodeIsFolder(xulNode.node) ||
|
else if ((PlacesUtils.nodeIsFolder(xulNode.node) ||
|
||||||
@ -303,7 +304,7 @@
|
|||||||
// If the mouse is in the top 25% of the node,
|
// If the mouse is in the top 25% of the node,
|
||||||
// drop above the folder.
|
// drop above the folder.
|
||||||
dropPoint.ip = new InsertionPoint(
|
dropPoint.ip = new InsertionPoint(
|
||||||
resultNode.itemId,
|
PlacesUtils.getConcreteItemId(resultNode),
|
||||||
-1,
|
-1,
|
||||||
Ci.nsITreeView.DROP_BEFORE,
|
Ci.nsITreeView.DROP_BEFORE,
|
||||||
PlacesUtils.nodeIsTagQuery(xulNode.node),
|
PlacesUtils.nodeIsTagQuery(xulNode.node),
|
||||||
@ -326,7 +327,7 @@
|
|||||||
// This is a non-folder node or a readonly folder.
|
// This is a non-folder node or a readonly folder.
|
||||||
// If the mouse is above the middle, drop above this item.
|
// If the mouse is above the middle, drop above this item.
|
||||||
dropPoint.ip = new InsertionPoint(
|
dropPoint.ip = new InsertionPoint(
|
||||||
resultNode.itemId,
|
PlacesUtils.getConcreteItemId(resultNode),
|
||||||
-1,
|
-1,
|
||||||
Ci.nsITreeView.DROP_BEFORE,
|
Ci.nsITreeView.DROP_BEFORE,
|
||||||
PlacesUtils.nodeIsTagQuery(xulNode.node),
|
PlacesUtils.nodeIsTagQuery(xulNode.node),
|
||||||
@ -336,7 +337,7 @@
|
|||||||
|
|
||||||
// Drop below the item.
|
// Drop below the item.
|
||||||
dropPoint.ip = new InsertionPoint(
|
dropPoint.ip = new InsertionPoint(
|
||||||
resultNode.itemId,
|
PlacesUtils.getConcreteItemId(resultNode),
|
||||||
-1,
|
-1,
|
||||||
Ci.nsITreeView.DROP_AFTER,
|
Ci.nsITreeView.DROP_AFTER,
|
||||||
PlacesUtils.nodeIsTagQuery(xulNode.node),
|
PlacesUtils.nodeIsTagQuery(xulNode.node),
|
||||||
|
Loading…
Reference in New Issue
Block a user