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

EditorManager: Add a soft assertion for editor existence

Change-Id: Ieb1e13a25dd2ac4fbe2c1dba0adbbe93dcc6b4e7
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
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)
......
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