forked from qt-creator/qt-creator
SideBySideDiffEditor: Fix context
Suffixed are meant to be different for both editors.
Amends 2d360db2c3
.
Change-Id: I4bf8f2b066dbf420eba38a56301d6e24a685caf3
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -797,7 +797,7 @@ SideBySideDiffEditorWidget::SideBySideDiffEditorWidget(QWidget *parent)
|
|||||||
|
|
||||||
auto context = new IContext(this);
|
auto context = new IContext(this);
|
||||||
context->setWidget(m_editor[side]);
|
context->setWidget(m_editor[side]);
|
||||||
context->setContext(Context(Utils::Id(Constants::SIDE_BY_SIDE_VIEW_ID).withSuffix(1)));
|
context->setContext(Context(Id(Constants::SIDE_BY_SIDE_VIEW_ID).withSuffix(side + 1)));
|
||||||
ICore::addContextObject(context);
|
ICore::addContextObject(context);
|
||||||
};
|
};
|
||||||
setupEditor(LeftSide);
|
setupEditor(LeftSide);
|
||||||
|
Reference in New Issue
Block a user