src/Builder4/WindowLeftTree.bjs
authorAlan <alan@roojs.com>
Thu, 25 Jan 2024 09:26:18 +0000 (17:26 +0800)
committerAlan <alan@roojs.com>
Thu, 25 Jan 2024 09:26:18 +0000 (17:26 +0800)
src/Builder4/WindowLeftTree.vala

src/Builder4/WindowLeftTree.bjs
src/Builder4/WindowLeftTree.vala

index 8a7e8ee..a1d9163 100644 (file)
            " \t\t\t} else {",
            "\t\t\t\tGLib.debug(\"drop  contains %s - using %s\" , node.parent.fqn(), pos);",
            "\t\t\t\tif (_this.view.dragNode  != null && is_shift) {",
-           "\t\t \t\t\tif (node.parent == _this.view.dragNode.oid || node.parent.has_parent(_this.view.dragNode)) {",
+           "\t\t \t\t\tif (node.parent.oid == _this.view.dragNode.oid || node.parent.has_parent(_this.view.dragNode)) {",
            "\t\t\t \t\t\tGLib.debug(\"shift drop not self not allowed\");",
            "\t\t \t\t\t\tthis.addHighlight(null, \"\");",
            "\t\t \t\t\t\treturn Gdk.DragAction.COPY;\t",
index 63468f2..422a44e 100644 (file)
@@ -1035,7 +1035,7 @@ public class Xcls_WindowLeftTree : Object
                                                } else {
                                                        GLib.debug("drop  contains %s - using %s" , node.parent.fqn(), pos);
                                                        if (_this.view.dragNode  != null && is_shift) {
-                                                               if (node.parent == _this.view.dragNode.oid || node.parent.has_parent(_this.view.dragNode)) {
+                                                               if (node.parent.oid == _this.view.dragNode.oid || node.parent.has_parent(_this.view.dragNode)) {
                                                                        GLib.debug("shift drop not self not allowed");
                                                                        this.addHighlight(null, "");
                                                                        return Gdk.DragAction.COPY;