mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#9312 Return line edit instead of placeholder widget if auto value is not supported
This commit is contained in:
parent
b23dbd65f0
commit
dba447e3b8
@ -104,7 +104,14 @@ QWidget* PdmUiLineEditor::createEditorWidget( QWidget* parent )
|
|||||||
|
|
||||||
connect( m_autoValueToolButton, SIGNAL( clicked() ), this, SLOT( slotApplyAutoValue() ) );
|
connect( m_autoValueToolButton, SIGNAL( clicked() ), this, SLOT( slotApplyAutoValue() ) );
|
||||||
|
|
||||||
return m_placeholder;
|
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 line edit if no auto value is supported
|
||||||
|
return m_lineEdit;
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user