Gracefully handle no symbols found in change symbols dialog

Fixes KICAD-2BJ
This commit is contained in:
Ian McInerney 2023-06-29 22:37:25 +01:00
parent 533d7531a1
commit bb4fb9088f
1 changed files with 4 additions and 1 deletions

View File

@ -506,7 +506,10 @@ int DIALOG_CHANGE_SYMBOLS::processMatchingSymbols( SCH_COMMIT* aCommit )
}
}
matchesProcessed += processSymbols( aCommit, symbols );
if( symbols.size() > 0 )
matchesProcessed += processSymbols( aCommit, symbols );
else
m_messagePanel->Report( _( "*** No symbols matching criteria found ***" ), RPT_SEVERITY_ERROR );
frame->GetCurrentSheet().UpdateAllScreenReferences();