mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 384515 - ASSERT: null node when moving the root node in a places tree. r=dietrich.
This commit is contained in:
parent
56a3006a8d
commit
7d4df6bb57
@ -675,11 +675,15 @@
|
||||
var nodes = this.getSelectionNodes();
|
||||
for (var i = 0; i < nodes.length; ++i) {
|
||||
var node = nodes[i];
|
||||
|
||||
|
||||
// Disallow dragging the root node of a tree
|
||||
var parent = node.parent;
|
||||
if (!parent)
|
||||
throw Cr.NS_OK;
|
||||
|
||||
// If this node is part of a readonly container (e.g. a livemark) it
|
||||
// cannot be moved, only copied, so we must change the action used
|
||||
// by the drag session.
|
||||
var parent = node.parent;
|
||||
if (PlacesUtils.nodeIsReadOnly(parent)) {
|
||||
dragAction.action = Ci.nsIDragService.DRAGDROP_ACTION_COPY;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user