forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user