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); } } }