]> cloud.milkyroute.net Git - dolphin.git/commit
Always periodically dispatch pending items
authorKai Uwe Broulik <kde@privat.broulik.de>
Tue, 27 Aug 2019 11:26:26 +0000 (13:26 +0200)
committerKai Uwe Broulik <kde@privat.broulik.de>
Tue, 27 Aug 2019 11:26:26 +0000 (13:26 +0200)
commitf4a1d1b0222eeec4391d307820e8f56bc2d30038
treef858fc4e23d1c5c19b803702318c0d54f02b97e7
parent0c4f58328f1c72aee100a568b4315c1d5c91fdf0
Always periodically dispatch pending items

"Local" URLs can also be slow.
This might jeopardize loading large local directories where a resorting could take place but imho it's better than leaving the user
wondering when files will finally show up. However, it takes some time for KDirLister to initially signal items having been added,
and only then our 2 second timer starts.
Also, stop the timer when loading has completed.

Differential Revision: https://phabricator.kde.org/D23460
src/kitemviews/kfileitemmodel.cpp
src/kitemviews/kfileitemmodel.h