1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-14 00:43:50 +00:00

FIX: Correct data directory iteration order in CS

This commit is contained in:
Dave Corley 2024-11-28 18:19:12 -06:00
parent 064e3c7c2e
commit 82d68ec9cf

View File

@ -36,9 +36,9 @@ CSVDoc::FileDialog::~FileDialog() = default;
void CSVDoc::FileDialog::addFiles(const std::vector<std::filesystem::path>& dataDirs)
{
for (auto iter = dataDirs.rbegin(); iter != dataDirs.rend(); ++iter)
for (const auto& dir : dataDirs)
{
QString path = Files::pathToQString(*iter);
QString path = Files::pathToQString(dir);
mSelector->addFiles(path);
}
mSelector->sortFiles();