aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2013-12-24 23:28:45 +0200
committerEike Ziller <eike.ziller@digia.com>2014-01-07 11:02:29 +0100
commitab10ac13cb54ce7385d5a1c6f9b99deb9b3064a9 (patch)
tree4013e3b535aeca3be6a9a32930d4b59a7e5d26fa /src
parent56691bcd6048dd7d3bab1fb693de813a7c21f237 (diff)
EditorManager: Add a soft assertion for editor existence
Change-Id: Ieb1e13a25dd2ac4fbe2c1dba0adbbe93dcc6b4e7 Reviewed-by: hjk <hjk121@nokiamail.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/coreplugin/editormanager/editormanager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/coreplugin/editormanager/editormanager.cpp b/src/plugins/coreplugin/editormanager/editormanager.cpp
index b10cf3d2b2..e11b14398a 100644
--- a/src/plugins/coreplugin/editormanager/editormanager.cpp
+++ b/src/plugins/coreplugin/editormanager/editormanager.cpp
@@ -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)