From: Peter Penz Date: Fri, 3 Feb 2012 16:04:28 +0000 (+0100) Subject: The autoscroll timer should be only a single-shot timer X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/313a03d44807ba271cb4df0fc2a0752ba56aec89 The autoscroll timer should be only a single-shot timer --- diff --git a/src/kitemviews/kitemlistview.cpp b/src/kitemviews/kitemlistview.cpp index d09018474..67ba01a2f 100644 --- a/src/kitemviews/kitemlistview.cpp +++ b/src/kitemviews/kitemlistview.cpp @@ -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) {