check multiple file extension inclusions for custom cards (#4308)
This commit is contained in:
parent
ad0f313c9d
commit
5969656429
1 changed files with 4 additions and 1 deletions
|
@ -196,8 +196,11 @@ bool PictureLoaderWorker::cardImageExistsOnDisk(QString &setName, QString &corre
|
||||||
QString thisPath(it.next());
|
QString thisPath(it.next());
|
||||||
QFileInfo thisFileInfo(thisPath);
|
QFileInfo thisFileInfo(thisPath);
|
||||||
|
|
||||||
if (thisFileInfo.isFile() && thisFileInfo.baseName() == correctedCardname)
|
if (thisFileInfo.isFile() &&
|
||||||
|
(thisFileInfo.fileName() == correctedCardname || thisFileInfo.completeBaseName() == correctedCardname ||
|
||||||
|
thisFileInfo.baseName() == correctedCardname)) {
|
||||||
picsPaths << thisPath; // Card found in the CUSTOM directory, somewhere
|
picsPaths << thisPath; // Card found in the CUSTOM directory, somewhere
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!setName.isEmpty()) {
|
if (!setName.isEmpty()) {
|
||||||
|
|
Loading…
Reference in a new issue