mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-07 13:20:25 +00:00
Merge branch 'master' into 'master'
Use case-insensitive compare when searching for game data by the wizard. See merge request OpenMW/openmw!55
This commit is contained in:
commit
c94531de28
@ -856,7 +856,7 @@ QStringList Wizard::UnshieldWorker::findFiles(const QString &fileName, const QSt
|
|||||||
if (info.isDir()) {
|
if (info.isDir()) {
|
||||||
if (directories)
|
if (directories)
|
||||||
{
|
{
|
||||||
if (info.fileName() == fileName) {
|
if (!info.fileName().compare(fileName, Qt::CaseInsensitive)) {
|
||||||
result.append(info.absoluteFilePath());
|
result.append(info.absoluteFilePath());
|
||||||
} else {
|
} else {
|
||||||
if (recursive)
|
if (recursive)
|
||||||
@ -872,11 +872,11 @@ QStringList Wizard::UnshieldWorker::findFiles(const QString &fileName, const QSt
|
|||||||
|
|
||||||
switch (flags) {
|
switch (flags) {
|
||||||
case Qt::MatchExactly:
|
case Qt::MatchExactly:
|
||||||
if (info.fileName() == fileName)
|
if (!info.fileName().compare(fileName, Qt::CaseInsensitive))
|
||||||
result.append(info.absoluteFilePath());
|
result.append(info.absoluteFilePath());
|
||||||
break;
|
break;
|
||||||
case Qt::MatchEndsWith:
|
case Qt::MatchEndsWith:
|
||||||
if (info.fileName().endsWith(fileName))
|
if (info.fileName().endsWith(fileName), Qt::CaseInsensitive)
|
||||||
result.append(info.absoluteFilePath());
|
result.append(info.absoluteFilePath());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user