BUG: 375333
Details
Details
- Reviewers
dfaure - Commits
- R320:2524fc27f31a: [Folder thumbnailer] Use custom folder icon if set
I find the following code very suspicious
QString localFile = directory.path();
Also, when you use a non-folder icon the thumbnail overlays will look bad but at least you can have colored folders now. Dunno about remote locations (does it even create folder thumbnails there?).
Diff Detail
Diff Detail
- Repository
- R320 KIO Extras
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
For files, KIO::PreviewJob takes care of downloading files and then calls kio_thumbnail with a thumbnail:/ URL that contains the local file path.
For directories I guess only local dirs are supported, anything else would be slow and wouldn't fit this design anyway.
thumbnail/thumbnail.cpp | ||
---|---|---|
467 | I think this is correct [except maybe on Windows] because "directory" is a URL with the thumbnail:/ scheme, and here we extract the local file path from that URL. |