Fix Qt runtime warning "QTimeLine::start: already running".

svn path=/trunk/KDE/kdebase/apps/; revision=1198200
This commit is contained in:
Frank Reininghaus 2010-11-17 20:54:35 +00:00
parent a6fee698f6
commit 308855320a

View file

@ -91,6 +91,9 @@ void KTreeView::KTreeViewPrivate::startScrolling()
if (scrollBarPos != oldScrollBarPos) {
timeLine->setFrameRange(oldScrollBarPos, scrollBarPos);
if (timeLine->state() == QTimeLine::Running) {
timeLine->stop();
}
timeLine->start();
}
}