mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
caf: Added an option on ui fields to not add their value to the list of options if the option does not exist.
This commit is contained in:
@@ -176,7 +176,7 @@ QList<PdmOptionItemInfo> caf::PdmFieldUiCap<FieldType>::valueOptions(bool* useOp
|
||||
|
||||
// If not all are found, we have to add the missing to the list, to be able to show it
|
||||
|
||||
if (!foundAllFieldValues)
|
||||
if (isAutoAddingOptionFromValue() && !foundAllFieldValues)
|
||||
{
|
||||
if (uiBasedQVariant.type() != QVariant::List) // Single value field
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user