Corrected issues found by Scrawl.

openmw-35
dteviot 10 years ago
parent 43dd9aee94
commit fb671fed20

@ -592,9 +592,9 @@ void ContentSelectorModel::ContentModel::checkForLoadOrderErrors()
EsmFile* file = item(row);
bool isRowInError = isLoadOrderError(file->filePath());
LoadOrderError::ErrorCode error = LoadOrderError::ErrorCode_None;
foreach(QString dependantfileName, file->gameFiles())
foreach(QString dependentfileName, file->gameFiles())
{
const EsmFile* dependentFile = item(dependantfileName);
const EsmFile* dependentFile = item(dependentfileName);
if (!dependentFile)
{
@ -611,7 +611,7 @@ void ContentSelectorModel::ContentModel::checkForLoadOrderErrors()
if (!isRowInError && (error != LoadOrderError::ErrorCode_None))
{
setLoadOrderError(file->filePath(), LoadOrderError(error, dependantfileName));
setLoadOrderError(file->filePath(), LoadOrderError(error, dependentfileName));
break;
}
}

@ -3,7 +3,7 @@
QString ContentSelectorModel::LoadOrderError::sErrorToolTips[ErrorCode_LoadOrder] =
{
QString("Unable to find dependant file: %1"),
QString("Unable to find dependent file: %1"),
QString("Dependent file needs to be active: %1"),
QString("This file needs to load after %1")
};

@ -5,7 +5,7 @@
namespace ContentSelectorModel
{
/// \Details of a suspected Load Order problem a plug-in will have. This is basically a POD
/// \brief Details of a suspected Load Order problem a plug-in will have. This is basically a POD.
class LoadOrderError
{
public:
@ -28,7 +28,7 @@ namespace ContentSelectorModel
bool operator==(const LoadOrderError& rhs) const;
QString toolTip() const;
/// \Sentinal to represent a "No Load Order Error" condition
/// Sentinel to represent a "No Load Order Error" condition
static LoadOrderError sNoError;
private:

Loading…
Cancel
Save