mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 16:31:21 +00:00
The autoscroll timer should be only a single-shot timer
This commit is contained in:
parent
e20a6e59ea
commit
313a03d448
|
@ -263,7 +263,7 @@ void KItemListView::setAutoScroll(bool enabled)
|
||||||
{
|
{
|
||||||
if (enabled && !m_autoScrollTimer) {
|
if (enabled && !m_autoScrollTimer) {
|
||||||
m_autoScrollTimer = new QTimer(this);
|
m_autoScrollTimer = new QTimer(this);
|
||||||
m_autoScrollTimer->setSingleShot(false);
|
m_autoScrollTimer->setSingleShot(true);
|
||||||
connect(m_autoScrollTimer, SIGNAL(timeout()), this, SLOT(triggerAutoScrolling()));
|
connect(m_autoScrollTimer, SIGNAL(timeout()), this, SLOT(triggerAutoScrolling()));
|
||||||
m_autoScrollTimer->start(InitialAutoScrollDelay);
|
m_autoScrollTimer->start(InitialAutoScrollDelay);
|
||||||
} else if (!enabled && m_autoScrollTimer) {
|
} else if (!enabled && m_autoScrollTimer) {
|
||||||
|
|
Loading…
Reference in a new issue