Commit ab10ac13 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Eike Ziller
Browse files

EditorManager: Add a soft assertion for editor existence

Change-Id: Ieb1e13a25dd2ac4fbe2c1dba0adbbe93dcc6b4e7
Reviewed-by: default avatarhjk <>
Reviewed-by: default avatarEike Ziller <>
parent 56691bcd
......@@ -1261,6 +1261,7 @@ Core::IEditor *EditorManager::placeEditor(Core::Internal::EditorView *view, Core
void EditorManager::activateEditor(Core::IEditor *editor, OpenEditorFlags flags)
QTC_ASSERT(editor, return);
EditorView *view = viewForEditor(editor);
// an IEditor doesn't have to belong to a view, it might be kept in storage by the editor model
if (!view)
Supports Markdown
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