Skip to content

Instantly share code, notes, and snippets.

@torarnv
Created June 19, 2019 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torarnv/c5a592c3e57ea39ff59b239498cd1326 to your computer and use it in GitHub Desktop.
Save torarnv/c5a592c3e57ea39ff59b239498cd1326 to your computer and use it in GitHub Desktop.
diff --git i/src/corelib/animation/qabstractanimation.cpp w/src/corelib/animation/qabstractanimation.cpp
index 78b79e574a..42308b78fb 100644
--- i/src/corelib/animation/qabstractanimation.cpp
+++ w/src/corelib/animation/qabstractanimation.cpp
@@ -1061,7 +1061,7 @@ QAbstractAnimation::~QAbstractAnimation()
if (d->state != Stopped) {
QAbstractAnimation::State oldState = d->state;
d->state = Stopped;
- emit stateChanged(oldState, d->state);
+ emit stateChanged(d->state, oldState);
if (oldState == QAbstractAnimation::Running)
QAnimationTimer::unregisterAnimation(this);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment