1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-30 17:41:34 +00:00

Avoid unnecessary file system access in plugin toggling

This commit is contained in:
Alexei Kotov 2025-05-15 23:00:08 +03:00
parent 6d97ea01b2
commit 89d6408587

View file

@ -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);