Assume Morrowind.esm dependency for dependency-less content addons (fixes #2829)

0.6.3
Capostrophic 7 years ago committed by Capostrophic
parent 9b8c56761b
commit d967983f5c

@ -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…
Cancel
Save