Skip to content
Commit ef76b22b authored by Stefan Brüns's avatar Stefan Brüns
Browse files

Avoid pointless probing for nonexisting thumbnail images

QImage::load(<path>) tries to find a fallback image if the file does
not exist, by appending extensions of all supported file formats, as
QImageReader defaults to format autodetection.

Check if the file exists, and only then try to load it.
parent c2e576ab
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment