Commit a89e0d46 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

lspclient: aid compilation on older version by explicit json object conversion

parent 5742754e
......@@ -622,7 +622,7 @@ private:
const auto servers = m_serverConfig.value(QLatin1String("servers")).toObject();
for (auto it = servers.begin(); it != servers.end(); ++it) {
// get highlighting mode regex for this server, if not set, fallback to just the name
QString highlightingModeRegex = it.value()[QLatin1String("highlightingModeRegex")].toString();
QString highlightingModeRegex = it.value().toObject().value(QLatin1String("highlightingModeRegex")).toString();
if (highlightingModeRegex.isEmpty()) {
highlightingModeRegex = it.key();
}
......
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