mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-08 03:41:11 -04:00
Merge branch 'qfileinfo' into 'master'
Avoid unnecessary file system access in plugin toggling See merge request OpenMW/openmw!4679
This commit is contained in:
commit
a7a072e3f8
@ -835,10 +835,7 @@ bool ContentSelectorModel::ContentModel::setCheckState(const QString& filepath,
|
||||
{
|
||||
for (const EsmFile* downstreamFile : mFiles)
|
||||
{
|
||||
QFileInfo fileInfo(filepath);
|
||||
QString filename = fileInfo.fileName();
|
||||
|
||||
if (downstreamFile->gameFiles().contains(filename, Qt::CaseInsensitive))
|
||||
if (downstreamFile->gameFiles().contains(file->fileName(), Qt::CaseInsensitive))
|
||||
{
|
||||
mCheckedFiles.erase(downstreamFile);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user