Skip to content

KFileItemModelRolesUpdater: prevent generating twice previews for same indexes

Méven Car requested to merge (removed):double-preview into master

KFileItemModelRolesUpdater::indexesToResolve until now could return a list containing multiple times the same index, resulting in previews being generated several times for those files.

This was noticeable when those files where directories since their previews are not cached and use a random number. Each time this would occur one could see the folder icon being updated shortly after the first icon had been loaded.

cc @elvisangelaccio @ngraham

Edited by Méven Car

Merge request reports

Loading