diff --git a/components/contentselector/model/contentmodel.cpp b/components/contentselector/model/contentmodel.cpp index 0fa1a64266..06248bf0af 100644 --- a/components/contentselector/model/contentmodel.cpp +++ b/components/contentselector/model/contentmodel.cpp @@ -673,7 +673,7 @@ void ContentSelectorModel::ContentModel::setNonUserContent(const QStringList& fi for (auto* file : mFiles) file->setFromAnotherConfigFile(mNonUserContent.contains(file->fileName().toLower())); - int insertPosition + auto insertPosition = std::ranges::find_if(mFiles, [](const EsmFile* file) { return !file->builtIn(); }) - mFiles.begin(); for (const auto& filepath : fileList)