Core: Add guard in Tree to ensure we don't process items during deletion

This commit is contained in:
tetektoza
2025-06-17 00:15:49 +02:00
parent 5e91c90bdc
commit fdf002df2d

View File

@@ -5360,6 +5360,11 @@ enum Status {
void DocumentObjectItem::testStatus(bool resetStatus, QIcon& icon1, QIcon& icon2)
{
// guard against calling this during destruction when tree widget may be nullptr
if (!treeWidget()) {
return;
}
App::DocumentObject* pObject = object()->getObject();
int visible = -1;