https://bugs.kde.org/show_bug.cgi?id=458491

--- Comment #7 from Bharadwaj Raju <bharadwaj.raju...@protonmail.com> ---
Git commit 408ce1e7d4bd082378c1da685d01dcd5c6bf9a60 by Bharadwaj Raju, on
behalf of Nicolas Fella.
Committed on 23/10/2022 at 18:50.
Pushed by bharadwaj-raju into branch 'master'.

Don't attempt to load a nonexistant image when creating thumbnails

When given a path that doesn't exist QImage tries loading that path plus the
extensions of all image formats it knows

This  causes unneeded syscalls

We can check once whether the file exists and only attempt to load the image if
we know it is there

M  +4    -0    lib/thumbnailprovider/thumbnailprovider.cpp

https://invent.kde.org/graphics/gwenview/commit/408ce1e7d4bd082378c1da685d01dcd5c6bf9a60

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to