forked from qt-creator/qt-creator
CppEditor: Check document before access
Amends f99e17efa4.
Fixes: QTCREATORBUG-28197
Change-Id: I7a3561b5ff5b7635f419f1252595c639fe7254bf
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -837,6 +837,9 @@ void CppEditorWidget::switchDeclarationDefinition(bool inNextSplit)
|
||||
bool CppEditorWidget::followQrcUrl(const QTextCursor &cursor,
|
||||
const Utils::LinkHandler &processLinkCallback)
|
||||
{
|
||||
if (!isSemanticInfoValidExceptLocalUses())
|
||||
return false;
|
||||
|
||||
const Project * const project = ProjectTree::currentProject();
|
||||
if (!project || !project->rootProjectNode())
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user