Skip to content

Commit

Permalink
Don't allow link to be dropped on it's target
Browse files Browse the repository at this point in the history
But allow it to be dropped on other groups.

Fix the fix for Bug 1 in issue #119
  • Loading branch information
rodlie committed Feb 23, 2024
1 parent b080ac4 commit e0f4ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Boxes/containerbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<InternalLinkGroupBox*>(iObj)) {
if (box->isLink()) { continue; }
if (enve_cast<ContainerBox*>(box->getFinalTarget()) == this) { continue; }
}
insertContained((dropId++) - ca_getNumberOfChildren(),
iObj->ref<eBoxOrSound>());
Expand Down

0 comments on commit e0f4ffd

Please sign in to comment.