mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8952 Only include fields to be modified for sub items on/off
Only one fieldChanged is issued, and make sure that all fields in the selection will change state. If state is not changed for the last field, no notification will happen.
This commit is contained in:
parent
b17e3813df
commit
a511bfd722
@ -204,6 +204,10 @@ std::vector<caf::PdmField<bool>*> RicToggleItemsFeatureImpl::findToggleFieldsFro
|
||||
if ( uiObjectHandleChild && uiObjectHandleChild->objectToggleField() )
|
||||
{
|
||||
auto* field = dynamic_cast<caf::PdmField<bool>*>( uiObjectHandleChild->objectToggleField() );
|
||||
if ( !field ) continue;
|
||||
|
||||
if ( state == SelectionToggleType::TOGGLE_ON && field->value() ) continue;
|
||||
if ( state == SelectionToggleType::TOGGLE_OFF && !field->value() ) continue;
|
||||
|
||||
fields.emplace_back( field );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user