Fix crashes related to widget highlighting

This commit is contained in:
WarmUpTill
2024-08-15 20:11:01 +02:00
committed by WarmUpTill
parent 5bb10a4aef
commit 263565700a
4 changed files with 14 additions and 7 deletions

View File

@@ -160,7 +160,7 @@ void MacroTreeItem::Update(bool force)
_spacer = nullptr;
}
if (_type == Type::Group) {
if (_type == Type::Group && _expand) {
_boxLayout->removeWidget(_expand);
_expand->deleteLater();
_expand = nullptr;