mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user