Fix crash on closing applets.

BUG:157617

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773932
This commit is contained in:
Andre Duffeck 2008-02-12 05:51:43 +00:00
parent 899202d2fb
commit 6961810f6a

View File

@ -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;