avoid a possible null pointer ussage

propAnim has been already checked for not being null, but was not
checked here.

REVIEW: 106782
This commit is contained in:
Jaime Torres 2012-10-10 19:11:21 +02:00
parent 7209fa02e8
commit 0e45385db4

View File

@ -987,7 +987,7 @@ void AppletHandle::startFading(FadeType anim, const QPointF &hoverPos, bool pres
m_animType = anim;
//kDebug() << "animating for " << time << "ms";
if (m_animType == FadeIn) {
if (m_animType == FadeIn && propAnim) {
propAnim->setDirection(QAbstractAnimation::Forward);
propAnim->start();
} else if (propAnim) {