The autoscroll timer should be only a single-shot timer

This commit is contained in:
Peter Penz 2012-02-03 17:04:28 +01:00
parent e20a6e59ea
commit 313a03d448

View file

@ -263,7 +263,7 @@ void KItemListView::setAutoScroll(bool enabled)
{
if (enabled && !m_autoScrollTimer) {
m_autoScrollTimer = new QTimer(this);
m_autoScrollTimer->setSingleShot(false);
m_autoScrollTimer->setSingleShot(true);
connect(m_autoScrollTimer, SIGNAL(timeout()), this, SLOT(triggerAutoScrolling()));
m_autoScrollTimer->start(InitialAutoScrollDelay);
} else if (!enabled && m_autoScrollTimer) {