1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 13:15:34 +00:00

Merge branch 'why-are-you-walking-backwards' into 'master'

FIX: Correct data directory iteration order in CS

See merge request OpenMW/openmw!4469
This commit is contained in:
Alexei Kotov 2024-11-30 11:38:56 +00:00
commit 2aa249e82a

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