aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/basetexteditor.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2014-09-02 12:25:20 +0200
committerhjk <hjk121@nokiamail.com>2014-09-02 16:48:13 +0200
commit7224ccb2e7bab5b7bca88cbcd41829fdf3c25165 (patch)
tree6c3bc438bf4e68ce06cf5afd8950d235b0bd391e /src/plugins/texteditor/basetexteditor.cpp
parentcae737e6291d8349602cd9bd2e109abd0292e5af (diff)
Editors: Automatically add editor/document id to context and use that
instead of manually adding a context everywhere. Change-Id: I4336015a6d19349171a255e949da89b0013d6700 Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/texteditor/basetexteditor.cpp')
-rw-r--r--src/plugins/texteditor/basetexteditor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp
index 3f6fca2624..9eac5d600d 100644
--- a/src/plugins/texteditor/basetexteditor.cpp
+++ b/src/plugins/texteditor/basetexteditor.cpp
@@ -7270,6 +7270,7 @@ BaseTextEditor *BaseTextEditorFactory::createEditorHelper(const BaseTextDocument
{
BaseTextEditorWidget *widget = m_widgetCreator();
BaseTextEditor *editor = m_editorCreator();
+ editor->addContext(id());
editor->d->m_origin = this;
editor->m_widget = widget;