diff --git a/components/contentselector/model/contentmodel.cpp b/components/contentselector/model/contentmodel.cpp index 0aab06ac90..d800112712 100644 --- a/components/contentselector/model/contentmodel.cpp +++ b/components/contentselector/model/contentmodel.cpp @@ -723,8 +723,10 @@ QString ContentSelectorModel::ContentModel::toolTip(const EsmFile* file) const int index = indexFromItem(item(file->filePath())).row(); for (const LoadOrderError& error : checkForLoadOrderErrors(file, index)) { + assert(error.errorCode() != LoadOrderError::ErrorCode::ErrorCode_None); + text += "
"; - text += error.toolTip(); + text += mErrorToolTips[error.errorCode() - 1].arg(error.fileName()); text += "
"; } text += (""); diff --git a/components/contentselector/model/contentmodel.hpp b/components/contentselector/model/contentmodel.hpp index 1ba3090a32..f754b9ea30 100644 --- a/components/contentselector/model/contentmodel.hpp +++ b/components/contentselector/model/contentmodel.hpp @@ -93,6 +93,10 @@ namespace ContentSelectorModel QIcon mWarningIcon; bool mShowOMWScripts; + QString mErrorToolTips[ContentSelectorModel::LoadOrderError::ErrorCode_LoadOrder] + = { tr("Unable to find dependent file: %1"), tr("Dependent file needs to be active: %1"), + tr("This file needs to load after %1") }; + public: QString mMimeType; QStringList mMimeTypes; diff --git a/components/contentselector/model/loadordererror.cpp b/components/contentselector/model/loadordererror.cpp deleted file mode 100644 index c1b2025588..0000000000 --- a/components/contentselector/model/loadordererror.cpp +++ /dev/null @@ -1,12 +0,0 @@ -#include "loadordererror.hpp" -#include