mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-04-24 14:58:19 -05:00
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:
parent
8bac6fe829
commit
ad322d54f0
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user