forked from mirror/openmw-tes3mp
Merge pull request #1689)
This commit is contained in:
commit
69c659852d
1 changed files with 3 additions and 1 deletions
|
@ -512,7 +512,9 @@ void ContentSelectorModel::ContentModel::sortFiles()
|
|||
//dependencies appear.
|
||||
for (int j = i + 1; j < fileCount; j++)
|
||||
{
|
||||
if (gamefiles.contains(mFiles.at(j)->fileName(), Qt::CaseInsensitive))
|
||||
if (gamefiles.contains(mFiles.at(j)->fileName(), Qt::CaseInsensitive)
|
||||
|| (!mFiles.at(i)->isGameFile() && gamefiles.isEmpty()
|
||||
&& mFiles.at(j)->fileName().compare("Morrowind.esm", Qt::CaseInsensitive) == 0)) // Hack: implicit dependency on Morrowind.esm for dependency-less files
|
||||
{
|
||||
mFiles.move(j, i);
|
||||
|
||||
|
|
Loading…
Reference in a new issue