Skip to content

Commit

Permalink
Make sure the insertWidget function inserts at the correct index
Browse files Browse the repository at this point in the history
Insert the first widget at index 1 causes crash in Qt6
  • Loading branch information
magnesj committed Oct 14, 2024
1 parent 709ec73 commit 360024c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 360024c

Please sign in to comment.