From 8c135a009d42ba98966a0328fb07fd54171d8cc3 Mon Sep 17 00:00:00 2001 From: Laurent Trinques Date: Thu, 17 Sep 2026 13:59:32 +0200 Subject: [PATCH] Clear the tools dock when an editor refuses the selection --- sources/editor/ui/qetelementeditor.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sources/editor/ui/qetelementeditor.cpp b/sources/editor/ui/qetelementeditor.cpp index a8d190eb0..5c1f68f09 100644 --- a/sources/editor/ui/qetelementeditor.cpp +++ b/sources/editor/ui/qetelementeditor.cpp @@ -619,6 +619,8 @@ void QETElementEditor::updateInformations() } else { qDebug() << "Editor refused part."; + clearToolsDock(); + m_tools_dock_stack->setCurrentIndex(0); } } return; @@ -652,6 +654,8 @@ void QETElementEditor::updateInformations() } else { qDebug() << "Editor refused part."; + clearToolsDock(); + m_tools_dock_stack->setCurrentIndex(0); } } return; @@ -678,6 +682,8 @@ void QETElementEditor::updateInformations() } else { qDebug() << "Editor refused part."; + clearToolsDock(); + m_tools_dock_stack->setCurrentIndex(0); } } }