From 0b5091b60640045a09a4c68ddb07f8bdd61dd275 Mon Sep 17 00:00:00 2001 From: Simon De Backer Date: Sat, 3 Oct 2020 12:04:35 +0200 Subject: [PATCH] QT6: hooks added --- sources/undocommand/linkelementcommand.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sources/undocommand/linkelementcommand.cpp b/sources/undocommand/linkelementcommand.cpp index 8b361fc88..1a56fb981 100644 --- a/sources/undocommand/linkelementcommand.cpp +++ b/sources/undocommand/linkelementcommand.cpp @@ -285,6 +285,10 @@ void LinkElementCommand::makeLink(const QList &element_list) //All elements stored in to_unlink is unwanted we unlink it from m_element if (!to_unlink.isEmpty()) + { foreach(Element *elmt, to_unlink) + { m_element->unlinkElement(elmt); + } + } }