follow symlinks when iterating through the custom image folder (#5126)

This commit is contained in:
RickyRister 2024-10-10 21:27:24 -07:00 committed by GitHub
parent 44e92f61ca
commit 43b997fe40
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -190,7 +190,7 @@ bool PictureLoaderWorker::cardImageExistsOnDisk(QString &setName, QString &corre
QImageReader imgReader;
imgReader.setDecideFormatFromContent(true);
QList<QString> picsPaths = QList<QString>();
QDirIterator it(customPicsPath, QDirIterator::Subdirectories);
QDirIterator it(customPicsPath, QDirIterator::Subdirectories | QDirIterator::FollowSymlinks);
// Recursively check all subdirectories of the CUSTOM folder
while (it.hasNext()) {