check if the animation actually exists

svn path=/trunk/KDE/kdelibs/; revision=1087327
This commit is contained in:
Marco Martin 2010-02-08 20:47:29 +00:00
parent 22c390a768
commit ee81c23d18

View File

@ -196,6 +196,10 @@ void IconAction::show()
void IconAction::hide()
{
if (!m_animation) {
return;
}
Animation *animation = m_animation.data();
if (animation->state() == QAbstractAnimation::Running) {
animation->pause();