mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4090 Property Editor : Fix crash for no label editors
This commit is contained in:
@@ -201,7 +201,7 @@ void caf::PdmUiFormLayoutObjectEditor::recursivelyConfigureAndUpdateUiOrderingIn
|
||||
}
|
||||
}
|
||||
|
||||
if (labelPos != PdmUiItemInfo::TOP) // Already added if TOP
|
||||
if (fieldLabelWidget && labelPos != PdmUiItemInfo::TOP) // Already added if TOP
|
||||
{
|
||||
fieldColumnSpan += spareColumnsToAssign;
|
||||
|
||||
@@ -220,7 +220,11 @@ void caf::PdmUiFormLayoutObjectEditor::recursivelyConfigureAndUpdateUiOrderingIn
|
||||
{
|
||||
QWidget::setTabOrder(*previousTabOrderWidget, fieldEditorWidget);
|
||||
}
|
||||
previousTabOrderWidget = &fieldLabelWidget;
|
||||
|
||||
if (fieldLabelWidget)
|
||||
{
|
||||
previousTabOrderWidget = &fieldLabelWidget;
|
||||
}
|
||||
}
|
||||
fieldEditor->updateUi(uiConfigName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user