QmlJSEditor: Fix warning

Amends a8a3d79592.

Change-Id: Ifbab600c148d71cf1763f1c23290a98a3066c359
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2024-07-12 14:16:27 +02:00
parent 491c0ab7a6
commit ba8fe5601f

View File

@@ -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