summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/editormanager/editormanager.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2014-02-26 14:47:33 +0100
committerEike Ziller <eike.ziller@digia.com>2014-02-26 15:25:24 +0100
commit9d1a1d2cdf63a2b1483f0439b5e0875da4e2889e (patch)
treeaa4e83b3f2b93059c96df47b5a2f639fa4d7e9a7 /src/plugins/coreplugin/editormanager/editormanager.cpp
parent924e54b448468c9c036f6155893fa3373f4f2258 (diff)
downloadqt-creator-9d1a1d2cdf63a2b1483f0439b5e0875da4e2889e.tar.gz
Editors: Sanity check that an id was set in the editor implementation.
Since the id is now a member, it must be explicitly set by implementations. Change-Id: Ibaa6ac604033ae0370e815b1e3d369dac99b36bd Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/coreplugin/editormanager/editormanager.cpp')
-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 fa7d79fecf..46323c474d 100644
--- a/src/plugins/coreplugin/editormanager/editormanager.cpp
+++ b/src/plugins/coreplugin/editormanager/editormanager.cpp
@@ -1417,6 +1417,7 @@ IEditor *EditorManager::createEditor(const Id &editorId, const QString &fileName
}
IEditor *editor = factories.front()->createEditor();
+ QTC_CHECK(!editor || editor->id().isValid()); // sanity check that the editor has an id set
if (editor)
connect(editor->document(), SIGNAL(changed()), m_instance, SLOT(handleDocumentStateChange()));
if (editor)