check if the animation actually exists
svn path=/trunk/KDE/kdelibs/; revision=1087327
This commit is contained in:
parent
22c390a768
commit
ee81c23d18
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user