mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 23:23:52 +00:00
Use case-insensitive compare when searching for game data by the wizard.
Until now, the wizard was only comparing against an exact file name match while searching for game data, eg. "data*.cab". This patch makes it possible to locate game data regardless of case sensitivity, eg. "Data*.cab".
This commit is contained in:
parent
c01672a364
commit
f6e1aaae1a
1 changed files with 3 additions and 3 deletions
|
@ -856,7 +856,7 @@ QStringList Wizard::UnshieldWorker::findFiles(const QString &fileName, const QSt
|
|||
if (info.isDir()) {
|
||||
if (directories)
|
||||
{
|
||||
if (info.fileName() == fileName) {
|
||||
if (!info.fileName().compare(fileName, Qt::CaseInsensitive)) {
|
||||
result.append(info.absoluteFilePath());
|
||||
} else {
|
||||
if (recursive)
|
||||
|
@ -872,11 +872,11 @@ QStringList Wizard::UnshieldWorker::findFiles(const QString &fileName, const QSt
|
|||
|
||||
switch (flags) {
|
||||
case Qt::MatchExactly:
|
||||
if (info.fileName() == fileName)
|
||||
if (!info.fileName().compare(fileName, Qt::CaseInsensitive))
|
||||
result.append(info.absoluteFilePath());
|
||||
break;
|
||||
case Qt::MatchEndsWith:
|
||||
if (info.fileName().endsWith(fileName))
|
||||
if (info.fileName().endsWith(fileName), Qt::CaseInsensitive)
|
||||
result.append(info.absoluteFilePath());
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue