Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
6af91b3d
Commit
6af91b3d
authored
May 21, 2015
by
Fabio Bas
Browse files
Ignore filename case when loading custom sets
parent
b566bf4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/carddatabase.cpp
View file @
6af91b3d
...
@@ -1059,7 +1059,7 @@ void CardDatabase::loadCustomCardDatabases(const QString &path)
...
@@ -1059,7 +1059,7 @@ void CardDatabase::loadCustomCardDatabases(const QString &path)
if
(
!
dir
.
exists
())
if
(
!
dir
.
exists
())
return
;
return
;
foreach
(
QString
fileName
,
dir
.
entryList
(
QStringList
(
"*.xml"
),
QDir
::
Files
|
QDir
::
Readable
,
QDir
::
Name
))
foreach
(
QString
fileName
,
dir
.
entryList
(
QStringList
(
"*.xml"
),
QDir
::
Files
|
QDir
::
Readable
,
QDir
::
Name
|
QDir
::
IgnoreCase
))
{
{
loadCardDatabase
(
dir
.
absoluteFilePath
(
fileName
),
false
);
loadCardDatabase
(
dir
.
absoluteFilePath
(
fileName
),
false
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment