mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#11844 Quick Access adjustments
Show the Quick Access menu only for objects that implements RimFieldQuickAccessInterface Show the fields made available by RimFieldQuickAccessInterface
This commit is contained in:
@@ -60,8 +60,6 @@ void RimFieldQuickAccessGroup::addFields( const std::vector<caf::PdmFieldHandle*
|
||||
|
||||
for ( auto field : fields )
|
||||
{
|
||||
if ( findField( field ) ) continue;
|
||||
|
||||
addField( field );
|
||||
}
|
||||
}
|
||||
@@ -73,8 +71,8 @@ void RimFieldQuickAccessGroup::addField( caf::PdmFieldHandle* field )
|
||||
{
|
||||
if ( !field ) return;
|
||||
if ( !m_ownerView ) return;
|
||||
|
||||
if ( !isOwnerViewMatching( field ) ) return;
|
||||
if ( findField( field ) ) return;
|
||||
|
||||
auto fieldReference = new RimFieldQuickAccess();
|
||||
fieldReference->setField( field );
|
||||
|
||||
Reference in New Issue
Block a user