Make sure the insertWidget function inserts at the correct index

Insert the first widget at index 1 causes crash in Qt6
This commit is contained in:
Magne Sjaastad
2024-10-11 14:28:56 +02:00
parent 709ec7378e
commit 360024c4bc

View File

@@ -114,7 +114,7 @@ void RicSummaryPlotEditorWidgetCreator::recursivelyConfigureAndUpdateTopLevelUiO
QMinimizePanel* curveGroup = getOrCreateCurveTreeGroup();
m_lowerLeftLayout->insertWidget( 2, curveGroup, 1 );
m_lowerLeftLayout->addStretch( 0 );
m_lowerRightLayout->insertWidget( 1, getOrCreatePlotWidget() );
m_lowerRightLayout->insertWidget( 0, getOrCreatePlotWidget() );
// Fields at bottom of dialog
configureAndUpdateFields( 1, m_bottomFieldLayout, topLevelUiItems, uiConfigName );