mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 07:00:17 -05:00
PropertyFilter: show filter settings when linked with cell result
When m_linkedWithCellResult is true, the early return in defineUiOrdering was hiding all filter options (range, filter mode, category selection). Hide only the Result group when linked; always show the Filter Settings group.
This commit is contained in:
1 parent
8df24c5bd3
commit
4de2701bef
1 file changed
+6
-8
@@ -231,15 +231,13 @@ void RimEclipsePropertyFilter::defineUiOrdering( QString uiConfigName, caf::PdmU
|
||||
uiOrdering.add( &m_name );
|
||||
|
||||
uiOrdering.add( &m_linkedWithCellResult );
|
||||
if ( m_linkedWithCellResult )
|
||||
{
|
||||
uiOrdering.skipRemainingFields( true );
|
||||
return;
|
||||
}
|
||||
|
||||
// Fields declared in Rimm_resultDefinition
|
||||
caf::PdmUiGroup* group1 = uiOrdering.addNewGroup( "Result" );
|
||||
m_resultDefinition->uiOrdering( uiConfigName, *group1 );
|
||||
if ( !m_linkedWithCellResult )
|
||||
{
|
||||
// Fields declared in Rimm_resultDefinition
|
||||
caf::PdmUiGroup* group1 = uiOrdering.addNewGroup( "Result" );
|
||||
m_resultDefinition->uiOrdering( uiConfigName, *group1 );
|
||||
}
|
||||
|
||||
caf::PdmUiGroup& group2 = *( uiOrdering.addNewGroup( "Filter Settings" ) );
|
||||
|
||||
|
||||
Reference in new issue
Block a user