mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 16:49:54 +00:00
Bugfix: OpenCS segfault when plug-in dependency not found.
When a file that a plug-in depends on cannot be found, the OpenCS file dialog crashes. Similar problem exists in omwlauncher's "Data Files" dialog.
This commit is contained in:
parent
017e4cd4ef
commit
71700d2cb1
1 changed files with 9 additions and 6 deletions
|
@ -597,13 +597,16 @@ QList<ContentSelectorModel::LoadOrderError> ContentSelectorModel::ContentModel::
|
||||||
{
|
{
|
||||||
errors.append(LoadOrderError(LoadOrderError::ErrorCode_MissingDependency, dependentfileName));
|
errors.append(LoadOrderError(LoadOrderError::ErrorCode_MissingDependency, dependentfileName));
|
||||||
}
|
}
|
||||||
if (!isChecked(dependentFile->filePath()))
|
else
|
||||||
{
|
{
|
||||||
errors.append(LoadOrderError(LoadOrderError::ErrorCode_InactiveDependency, dependentfileName));
|
if (!isChecked(dependentFile->filePath()))
|
||||||
}
|
{
|
||||||
if (row < indexFromItem(dependentFile).row())
|
errors.append(LoadOrderError(LoadOrderError::ErrorCode_InactiveDependency, dependentfileName));
|
||||||
{
|
}
|
||||||
errors.append(LoadOrderError(LoadOrderError::ErrorCode_LoadOrder, dependentfileName));
|
if (row < indexFromItem(dependentFile).row())
|
||||||
|
{
|
||||||
|
errors.append(LoadOrderError(LoadOrderError::ErrorCode_LoadOrder, dependentfileName));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return errors;
|
return errors;
|
||||||
|
|
Loading…
Reference in a new issue