summaryrefslogtreecommitdiff
path: root/src/modinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modinfo.h')
-rw-r--r--src/modinfo.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modinfo.h b/src/modinfo.h
index 634ea900..f18bd347 100644
--- a/src/modinfo.h
+++ b/src/modinfo.h
@@ -43,6 +43,12 @@ class QDateTime;
namespace MOBase { class IPluginGame; }
namespace MOShared { class DirectoryEntry; }
+struct ModNameCompare {
+ bool operator()(const QString& lhs, const QString& rhs) const {
+ return QString::compare(lhs, rhs, Qt::CaseInsensitive) < 0;
+ }
+};
+
/**
* @brief Represents meta information about a single mod.
*
@@ -989,7 +995,7 @@ protected:
static QMutex s_Mutex;
static std::vector<ModInfo::Ptr> s_Collection;
static ModInfo::Ptr s_Overwrite;
- static std::map<QString, unsigned int> s_ModsByName;
+ static std::map<QString, unsigned int, ModNameCompare> s_ModsByName;
static std::map<std::pair<QString, int>, std::vector<unsigned int>> s_ModsByModID;
static int s_NextID;