Core: Add guard in Tree to ensure we don't process items during deletion
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user