diff --git a/src/plugins/qmljseditor/qmljseditordocument.cpp b/src/plugins/qmljseditor/qmljseditordocument.cpp index 60e32961f5e..ee8fea0a41c 100644 --- a/src/plugins/qmljseditor/qmljseditordocument.cpp +++ b/src/plugins/qmljseditor/qmljseditordocument.cpp @@ -770,7 +770,7 @@ void QmlJSEditorDocumentPrivate::settingsChanged() auto lspClientManager = LanguageClient::LanguageClientManager::instance(); if (newQmlls.isEmpty()) { qCDebug(qmllsLog) << "disabling qmlls for" << q->filePath(); - if (LanguageClient::Client *client = lspClientManager->clientForDocument(q)) { + if (lspClientManager->clientForDocument(q)) { qCDebug(qmllsLog) << "deactivating " << q->filePath() << "in qmlls" << newQmlls; lspClientManager->openDocumentWithClient(q, nullptr); } else