From e0f4ffd2f3ddf114f897b50c14daf85f245481eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole-Andr=C3=A9=20Rodlie?= Date: Fri, 23 Feb 2024 23:49:36 +0100 Subject: [PATCH] Don't allow link to be dropped on it's target But allow it to be dropped on other groups. Fix the fix for Bug 1 in issue #119 --- src/core/Boxes/containerbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Boxes/containerbox.cpp b/src/core/Boxes/containerbox.cpp index 4d17012fa..859c765dc 100755 --- a/src/core/Boxes/containerbox.cpp +++ b/src/core/Boxes/containerbox.cpp @@ -127,7 +127,7 @@ bool ContainerBox::SWT_dropInto(const int index, const QMimeData * const data) { if(isAncestor(box)) continue; } if (const auto box = enve_cast(iObj)) { - if (box->isLink()) { continue; } + if (enve_cast(box->getFinalTarget()) == this) { continue; } } insertContained((dropId++) - ca_getNumberOfChildren(), iObj->ref());