Windows: Thumbnails are not saved to disk
On Windows thumbnails are not saved to disk; they are visible in the app just not saved to disk.
I tried to figure out the cause, but I have trouble fully understanding the code.
I'm stuck at https://invent.kde.org/frameworks/kio/-/blob/9a71657097303ef60b1915c3218faab4fae42f7d/src/widgets/previewjob.cpp#L812.
- First off,
bool shouldAllow = checkedId && checkedId == thumbRootId;
is false becausecheckedId
is 0, same asthumbRootId
. - Second, the device (for the file
C:/Users/george/Videos/bbb.jpg
) is not valid, soshouldAllow
stays false causingcurrentDeviceCachePolicy
to beCachePolicy::Prevent
causing save https://invent.kde.org/frameworks/kio/-/blob/9a71657097303ef60b1915c3218faab4fae42f7d/src/widgets/previewjob.cpp#L925 to be false and the file is not saved.
Is it correct that bool shouldAllow = checkedId && checkedId == thumbRootId;
is false when both checkedId
and thumbRootId
are 0 (zero)?
I tested this with the previewtest and the file C:/Users/george/Videos/bbb.jpg.
UCRT64 environment and on Windows 10 with craft and mingw.
EDIT: tested on windows 10/11 with msys2Edited by George Florea Bănuș