diff -r 11d3954df52a -r 627c4a0fd0e7 src/hbcore/utils/hbtimer.cpp --- a/src/hbcore/utils/hbtimer.cpp Thu May 27 13:10:59 2010 +0300 +++ b/src/hbcore/utils/hbtimer.cpp Fri Jun 11 13:58:22 2010 +0300 @@ -39,19 +39,20 @@ { public: HbTimerAnim(HbTimerEntry *entry) : mEntry(entry), mDuration(entry->interval()) { } - int duration() const { return mDuration; } + int duration() const { + return mDuration; + } void updateCurrentTime(int) { } - void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) - { - if (oldState != QAbstractAnimation::Stopped && newState == QAbstractAnimation::Stopped && mEntry) { - mEntry->timerFired(); - mEntry->mAnim = 0; // to prevent confusing unregisterEntry() and double deletion - HbTimer::instance()->unregisterEntry(mEntry); - if (mEntry->mDeleteWhenFinishedNormally) { - delete mEntry; - } + void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { + if (oldState != QAbstractAnimation::Stopped && newState == QAbstractAnimation::Stopped && mEntry) { + mEntry->timerFired(); + mEntry->mAnim = 0; // to prevent confusing unregisterEntry() and double deletion + HbTimer::instance()->unregisterEntry(mEntry); + if (mEntry->mDeleteWhenFinishedNormally) { + delete mEntry; } } + } HbTimerEntry *mEntry; int mDuration; };