QmlJsEditor: Remove warning about unused variable

Change-Id: If67c3330130a90b84f593cb8a83999f47f3849e0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Jarek Kobus
2024-07-09 21:57:54 +02:00
parent 32af4964ce
commit 84171887bb

View File

@@ -765,7 +765,7 @@ void QmlJSEditorDocumentPrivate::settingsChanged()
m_qmllsStatus.qmllsPath = newQmlls; m_qmllsStatus.qmllsPath = newQmlls;
if (newQmlls.isEmpty()) { if (newQmlls.isEmpty()) {
qCDebug(qmllsLog) << "disabling qmlls for" << q->filePath(); qCDebug(qmllsLog) << "disabling qmlls for" << q->filePath();
if (Client *client = LanguageClientManager::clientForDocument(q)) { if (LanguageClientManager::clientForDocument(q) != nullptr) {
qCDebug(qmllsLog) << "deactivating " << q->filePath() << "in qmlls" << newQmlls; qCDebug(qmllsLog) << "deactivating " << q->filePath() << "in qmlls" << newQmlls;
LanguageClientManager::openDocumentWithClient(q, nullptr); LanguageClientManager::openDocumentWithClient(q, nullptr);
} else } else