From f2c796bdb0658bd6c38593003508ca768c3c70a8 Mon Sep 17 00:00:00 2001 From: Martin Marmsoler Date: Tue, 26 May 2020 22:19:25 +0200 Subject: [PATCH] not needed, because it is the same than a few lines below --- sources/editor/qetelementeditor.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/sources/editor/qetelementeditor.cpp b/sources/editor/qetelementeditor.cpp index b88fc6beb..7f1f1cc3e 100644 --- a/sources/editor/qetelementeditor.cpp +++ b/sources/editor/qetelementeditor.cpp @@ -629,22 +629,6 @@ void QETElementEditor::slot_updateInformations() } - if(selected_qgis.size() == 1) - { - QGraphicsItem *qgi = selected_qgis.first(); - if (CustomElementPart *selection = dynamic_cast(qgi)) - { - if (QWidget *widget = m_tools_dock_stack->widget(1)) - { - if (ElementItemEditor *editor = dynamic_cast(widget)) - { - if(editor->currentPart() == selection) - return; - } - } - } - } - //There's one selected item if (selected_qgis.size() == 1) {