#9312 Return line edit instead of placeholder widget if auto value is not supported

This commit is contained in:
Magne Sjaastad 2022-09-23 09:53:38 +02:00
parent b23dbd65f0
commit dba447e3b8

View File

@ -104,9 +104,16 @@ QWidget* PdmUiLineEditor::createEditorWidget( QWidget* parent )
connect( m_autoValueToolButton, SIGNAL( clicked() ), this, SLOT( slotApplyAutoValue() ) ); connect( m_autoValueToolButton, SIGNAL( clicked() ), this, SLOT( slotApplyAutoValue() ) );
if ( uiField()->isAutoValueSupported() )
{
// If we return the placeholder widget to be used in a table editor, Qt will crash when the editor is closed
return m_placeholder; return m_placeholder;
} }
// Return line edit if no auto value is supported
return m_lineEdit;
}
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
/// ///
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------