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); EsmFile* file = item(row);
bool isRowInError = isLoadOrderError(file->filePath()); bool isRowInError = isLoadOrderError(file->filePath());
LoadOrderError::ErrorCode error = LoadOrderError::ErrorCode_None; 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) if (!dependentFile)
{ {
@ -611,7 +611,7 @@ void ContentSelectorModel::ContentModel::checkForLoadOrderErrors()
if (!isRowInError && (error != LoadOrderError::ErrorCode_None)) if (!isRowInError && (error != LoadOrderError::ErrorCode_None))
{ {
setLoadOrderError(file->filePath(), LoadOrderError(error, dependantfileName)); setLoadOrderError(file->filePath(), LoadOrderError(error, dependentfileName));
break; break;
} }
} }

@ -3,7 +3,7 @@
QString ContentSelectorModel::LoadOrderError::sErrorToolTips[ErrorCode_LoadOrder] = 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("Dependent file needs to be active: %1"),
QString("This file needs to load after %1") QString("This file needs to load after %1")
}; };

@ -5,7 +5,7 @@
namespace ContentSelectorModel 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 class LoadOrderError
{ {
public: public:
@ -28,7 +28,7 @@ namespace ContentSelectorModel
bool operator==(const LoadOrderError& rhs) const; bool operator==(const LoadOrderError& rhs) const;
QString toolTip() 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; static LoadOrderError sNoError;
private: private:

Loading…
Cancel
Save