Clear the tools dock when an editor refuses the selection

This commit is contained in:
Laurent Trinques
2026-09-17 13:59:32 +02:00
parent 261b0f9e12
commit 8c135a009d
+6
View File
@@ -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);
}
}
}