This avoids requesting a thumbnail twice for certain files, typically the first or last one in a folder
Details
Details
- Reviewers
elvisangelaccio hein - Group Reviewers
Dolphin - Commits
- R318:033eb6b3a35c: [KFileItemModelRolesUpdater] Avoid duplicate indexes to resolve
Noticed that it would generate the thumbnail for the first folder twice
Haven't spotted any more duplicates, there could be more cases
Diff Detail
Diff Detail
- Repository
- R318 Dolphin
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
I just reverted it, when I open Dolphin directly into a folder with few files, it doesn't load the first thumbnail anymore now :/
src/kitemviews/kfileitemmodelrolesupdater.cpp | ||
---|---|---|
1141 | Make it this set and return toList ? |
src/kitemviews/kfileitemmodelrolesupdater.cpp | ||
---|---|---|
1141 | I thought about the same but the order in which the previews are generated does matter |