]> cloud.milkyroute.net Git - dolphin.git/commit
[FileItemRolesUpdater] Fix reservation size
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Mon, 15 Feb 2021 10:25:28 +0000 (11:25 +0100)
committerStefan Brüns <stefan.bruens@rwth-aachen.de>
Mon, 15 Feb 2021 16:24:15 +0000 (17:24 +0100)
commit68704c2a28eed5a066d76ed880dc1971b6afab04
treefd4e2b390af1d2d00595fb7bf365413920f2b809
parentb4676b71c695a546de623d6da592e9fc50b7265f
[FileItemRolesUpdater] Fix reservation size

The code below always adds the visible range, up to 5 pages before and
after the visible range (each capped to ResolveAllItemsLimit/2) and
the very first and last page (each up to m_maximumVisibleItems).

Use this number to avoid growing the list later.
src/kitemviews/kfileitemmodelrolesupdater.cpp