Fix crash in case of high frequency resize events

I am not sure if this could really happen in normal use.
Was discovered after implementing the script properties UI widgets.
This commit is contained in:
WarmUpTill 2024-08-10 16:21:11 +02:00 committed by WarmUpTill
parent 8bac6fe829
commit ad322d54f0

View File

@ -133,7 +133,9 @@ bool Section::eventFilter(QObject *obj, QEvent *event)
void Section::SetupAnimations()
{
delete _toggleAnimation;
if (_toggleAnimation) {
_toggleAnimation->deleteLater();
}
_toggleAnimation = new QParallelAnimationGroup(this);
_toggleAnimation->addAnimation(