mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 07:00:17 -05:00
RimDataFilterInView previously copied the source filter's name once, in setSourceFilter() and initAfterRead() via syncNameFromSource(). That left the wrapper showing the default "Combined Filter" when the source was renamed after the wrapper was created — typical for the Python add_combined_filter(name=...) flow, where the wrapper is constructed during addFilter() before the user-supplied name reaches the source. Replace the wrapper's reliance on its inherited m_name field for display with a caf::PdmProxyValueField<QString> that delegates the read to m_sourceFilter()->name() and the write to setName(). Override userDescriptionField() so the PDM tree label and property panel route through the proxy — both directions of rename now propagate. Matches the m_nameProxy pattern already established in RimCellFilter. The inherited m_name is no longer the display source of truth but is left in place so RimNamedObject's serialization stays unchanged.