Commit 6645379e authored by Mark Nauwelaerts's avatar Mark Nauwelaerts Committed by Christoph Cullmann
Browse files

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

parent 83bc059c
......@@ -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();
Supports Markdown
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