CppEditor: Re-add check for editor existence in updateFunctionDeclDefLink

Fixes a recent regression.

Change-Id: Iaa4eb936274b33057fc6c8fdcfbe751b9ab28b75
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
hjk
2014-09-08 13:40:44 +02:00
committed by Christian Stenger
parent 9e81bd0b36
commit 0feb80fa00

View File

@@ -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;