kdelibs/kdelibs-4.2.95-kdebug#19833...

47 lines
1.5 KiB
Diff

--- branches/KDE/4.3/kdelibs/plasma/animator.cpp 2009/06/24 10:17:04 986143
+++ branches/KDE/4.3/kdelibs/plasma/animator.cpp 2009/07/02 22:33:13 990659
@@ -622,6 +622,10 @@
//kDebug() << "timeEvent, elapsed time: " << elapsed;
foreach (AnimationState *state, d->animatedItems) {
+ if (d->animatedItemsToDelete.contains(state)) {
+ continue;
+ }
+
if (state->currentInterval <= elapsed) {
// we need to step forward!
state->currentFrame +=
@@ -648,6 +652,10 @@
}
foreach (MovementState *state, d->movingItems) {
+ if (d->movingItemsToDelete.contains(state)) {
+ continue;
+ }
+
if (state->currentInterval <= elapsed) {
// we need to step forward!
state->currentFrame +=
@@ -675,6 +683,10 @@
}
foreach (ElementAnimationState *state, d->animatedElements) {
+ if (d->animatedElementsToDelete.contains(state)) {
+ continue;
+ }
+
if (state->currentFrame == state->frames) {
//kDebug() << "skipping" << state->id << "as it is already at frame"
// << state->currentFrame << "of" << state->frames;
@@ -711,6 +723,10 @@
}
foreach (CustomAnimationState *state, d->customAnims) {
+ if (d->customAnimsToDelete.contains(state)) {
+ continue;
+ }
+
if (state->currentInterval <= elapsed) {
// advance the frame
state->currentFrame +=