Commit a2cba335 authored by Leandro Melo's avatar Leandro Melo
Browse files

Generic highlighter: Fix lookup by definition name during mime type registration.

parent 0c6568af
......@@ -173,11 +173,11 @@ void Manager::gatherDefinitionsMimeTypes(QFutureInterface<Core::MimeType> &futur
qSort(allMetaData.begin(), allMetaData.end(), PriorityComp());
foreach (const QSharedPointer<HighlightDefinitionMetaData> &metaData, allMetaData) {
const QString &id = metaData->id();
if (m_idByName.contains(id))
if (m_idByName.contains(metaData->name()))
// This is a fallback item, do not consider it. One with this name already exists.
continue;
const QString &id = metaData->id();
m_idByName.insert(metaData->name(), id);
m_definitionsMetaData.insert(id, metaData);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment