From 98cfedd85bec571e52c206df02f1985d5bb12940 Mon Sep 17 00:00:00 2001 From: Mikhail Svechnikov <m.svechnikov@fz-juelich.de> Date: Thu, 21 Nov 2024 13:33:47 +0100 Subject: [PATCH] make connections unique --- GUI/View/Scene/MaskGraphicsScene.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GUI/View/Scene/MaskGraphicsScene.cpp b/GUI/View/Scene/MaskGraphicsScene.cpp index ba2e5165632..7039eb5e263 100644 --- a/GUI/View/Scene/MaskGraphicsScene.cpp +++ b/GUI/View/Scene/MaskGraphicsScene.cpp @@ -99,8 +99,8 @@ void MaskGraphicsScene::associateItems(Data2DItem* data_item) ASSERT(m_masks); ASSERT(m_prjns); - connect(m_masks, &MasksSet::setChanged, this, &MaskGraphicsScene::updateMost); - connect(m_prjns, &MasksSet::setChanged, this, &MaskGraphicsScene::updateMost); + connect(m_masks, &MasksSet::setChanged, this, &MaskGraphicsScene::updateMost, Qt::UniqueConnection); + connect(m_prjns, &MasksSet::setChanged, this, &MaskGraphicsScene::updateMost, Qt::UniqueConnection); updateMost(); } -- GitLab