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:
parent
7209fa02e8
commit
0e45385db4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user