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

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

index a18ebb5..ed32e4d 100644 (file)
            "\t\t\t}",
            " \t\t}",
            " \t\tif (_this.view.dropNode  != null && is_shift) {",
-           " \t\t\tif (node.oid == _this.view.dropNode.oid || node.has_parent(_this.view.dropNode()) {",
+           " \t\t\tif (node.oid == _this.view.dropNode.oid || node.has_parent(_this.view.dropNode)) {",
            "\t \t\t\tGLib.debug(\"shift drop not self not allowed\");",
            " \t\t\t\tthis.addHighlight(null, \"\");",
            " \t\t\t\treturn Gdk.DragAction.COPY;\t",
index bd5a22f..bad0f69 100644 (file)
@@ -1037,7 +1037,7 @@ public class Xcls_WindowLeftTree : Object
                                                }
                                        }
                                        if (_this.view.dropNode  != null && is_shift) {
-                                               if (node.oid == _this.view.dropNode.oid || node.has_parent(_this.view.dropNode()) {
+                                               if (node.oid == _this.view.dropNode.oid || node.has_parent(_this.view.dropNode)) {
                                                        GLib.debug("shift drop not self not allowed");
                                                        this.addHighlight(null, "");
                                                        return Gdk.DragAction.COPY;