check the tasget item is still alive, crash--

svn path=/trunk/KDE/kdelibs/; revision=1119672
This commit is contained in:
Marco Martin 2010-04-27 16:02:51 +00:00
parent 94d804635a
commit 28386758e1

View File

@ -168,7 +168,9 @@ void TabBarPrivate::slidingOldPageCompleted()
QGraphicsWidget *item = oldPageAnim->targetWidget();
oldPageAnimId = -1;
item->hide();
if (item) {
item->hide();
}
q->setFlags(0);
}