forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user