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:
commit
2aa249e82a
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue