Commit 0feb80fa authored by hjk's avatar hjk Committed by Christian Stenger

CppEditor: Re-add check for editor existence in updateFunctionDeclDefLink

Fixes a recent regression.

Change-Id: Iaa4eb936274b33057fc6c8fdcfbe751b9ab28b75
Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent 9e81bd0b
......@@ -671,7 +671,8 @@ void CppEditorWidget::updateFunctionDeclDefLinkNow()
if (noTracking)
return;
if (EditorManager::currentEditor()->widget() != this)
IEditor *editor = EditorManager::currentEditor();
if (!editor || editor->widget() != this)
return;
const Snapshot semanticSnapshot = d->m_lastSemanticInfo.snapshot;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment