Allow full-field filtering in lib_fields_table_editor

This commit is contained in:
Seth Hillbrand 2025-09-03 11:47:22 -07:00
parent f7fd832c67
commit 5c865cab36

View File

@ -740,8 +740,26 @@ void LIB_FIELDS_EDITOR_GRID_DATA_MODEL::RebuildRows()
wxLogTrace( traceLibFieldTable, "RebuildRows: Processing symbol '%s' (UUID: %s)", wxLogTrace( traceLibFieldTable, "RebuildRows: Processing symbol '%s' (UUID: %s)",
ref->GetName(), ref->m_Uuid.AsString() ); ref->GetName(), ref->m_Uuid.AsString() );
if( !m_filter.IsEmpty() && !WildCompareString( m_filter, ref->GetValue( false, nullptr, false ), false ) ) if( !m_filter.IsEmpty() )
{
bool match = false;
std::map<wxString, LIB_DATA_ELEMENT>& fieldStore = m_dataStore[ref->m_Uuid];
for( const LIB_DATA_MODEL_COL& col : m_cols )
{
auto it = fieldStore.find( col.m_fieldName );
if( it != fieldStore.end() && WildCompareString( m_filter, it->second.m_currentData, false ) )
{
match = true;
break;
}
}
if( !match )
continue; continue;
}
bool matchFound = false; bool matchFound = false;