Fix crash on closing applets.
BUG:157617 svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773932
This commit is contained in:
parent
899202d2fb
commit
6961810f6a
@ -529,6 +529,9 @@ void Phase::timerEvent(QTimerEvent *event)
|
||||
//TODO: calculate a proper interval based on the curve
|
||||
state->interval *= 1 - d->calculateProgress(state->frames, state->currentFrame);
|
||||
animationsRemain = true;
|
||||
} else {
|
||||
d->animatedElements.remove( state->id );
|
||||
delete state;
|
||||
}
|
||||
} else {
|
||||
state->currentInterval -= elapsed;
|
||||
|
Loading…
Reference in New Issue
Block a user