diff --git a/src/plugins/diffeditor/sidebysidediffeditorwidget.cpp b/src/plugins/diffeditor/sidebysidediffeditorwidget.cpp index d7ab7d6709f..8cabbac1e31 100644 --- a/src/plugins/diffeditor/sidebysidediffeditorwidget.cpp +++ b/src/plugins/diffeditor/sidebysidediffeditorwidget.cpp @@ -797,7 +797,7 @@ SideBySideDiffEditorWidget::SideBySideDiffEditorWidget(QWidget *parent) auto context = new IContext(this); 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); }; setupEditor(LeftSide);