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:
parent
6d97ea01b2
commit
89d6408587
1 changed files with 1 additions and 4 deletions
|
@ -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…
Reference in a new issue