From aacf25ebb67991a4a6559daebd3745bb91290301 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Thu, 29 Sep 2022 17:28:47 +0200 Subject: [PATCH] SideBySideDiffEditor: Fix context Suffixed are meant to be different for both editors. Amends 2d360db2c320e16d3bccf624c0d7c452d8231dd9. Change-Id: I4bf8f2b066dbf420eba38a56301d6e24a685caf3 Reviewed-by: Orgad Shaneh --- src/plugins/diffeditor/sidebysidediffeditorwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);