mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-01 02:53:56 -07:00
follow symlinks when iterating through the custom image folder (#5126)
This commit is contained in:
parent
44e92f61ca
commit
43b997fe40
1 changed files with 1 additions and 1 deletions
|
|
@ -190,7 +190,7 @@ bool PictureLoaderWorker::cardImageExistsOnDisk(QString &setName, QString &corre
|
||||||
QImageReader imgReader;
|
QImageReader imgReader;
|
||||||
imgReader.setDecideFormatFromContent(true);
|
imgReader.setDecideFormatFromContent(true);
|
||||||
QList<QString> picsPaths = QList<QString>();
|
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
|
// Recursively check all subdirectories of the CUSTOM folder
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue