forked from qt-creator/qt-creator
QmlJsEditor: Remove warning about unused variable
Change-Id: If67c3330130a90b84f593cb8a83999f47f3849e0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user