Commit 46047f20 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

lspclient: avoid QDir cast and empty value transform of projectBase

parent efd6521d
......@@ -543,7 +543,8 @@ private:
QObject *projectView = projectPluginView();
const auto projectBase = QDir(projectView ? projectView->property("projectBaseDir").toString() : QString());
// preserve raw QString value so it can be used and tested that way below
const auto projectBase = projectView ? projectView->property("projectBaseDir").toString() : QString();
const auto &projectMap = projectView ? projectView->property("projectMap").toMap() : QVariantMap();
// merge with project specific
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