From b080ac4037432230fe9266902d95ffb8c8856a06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole-Andr=C3=A9=20Rodlie?= Date: Fri, 23 Feb 2024 23:02:01 +0100 Subject: [PATCH] Don't allow drop from linked group Bug 1 in issue #119 --- src/core/Boxes/containerbox.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/Boxes/containerbox.cpp b/src/core/Boxes/containerbox.cpp index ec8183923..4d17012fa 100755 --- a/src/core/Boxes/containerbox.cpp +++ b/src/core/Boxes/containerbox.cpp @@ -126,6 +126,9 @@ bool ContainerBox::SWT_dropInto(const int index, const QMimeData * const data) { if(box == this) continue; if(isAncestor(box)) continue; } + if (const auto box = enve_cast(iObj)) { + if (box->isLink()) { continue; } + } insertContained((dropId++) - ca_getNumberOfChildren(), iObj->ref()); }