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:
Jacob Støren
2016-06-09 10:29:59 +02:00
parent 336828e48d
commit c2e62c60ba
3 changed files with 8 additions and 4 deletions

View File

@@ -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
{