forked from qt-creator/qt-creator
LanguageClient: prevent nullptr access
Change-Id: Id0dc46d3775d5e765d1e7d2c2eac0d7f807f34ce Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -419,7 +419,7 @@ void LanguageClientManager::openDocumentWithClient(TextEditor::TextDocument *doc
|
|||||||
client->openDocument(document);
|
client->openDocument(document);
|
||||||
else
|
else
|
||||||
client->activateDocument(document);
|
client->activateDocument(document);
|
||||||
} else if (Core::EditorManager::currentEditor()->document() == document) {
|
} else if (Core::EditorManager::currentDocument() == document) {
|
||||||
TextEditor::IOutlineWidgetFactory::updateOutline();
|
TextEditor::IOutlineWidgetFactory::updateOutline();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user