Don't show error dialog when no XML entity is specified

This commit is contained in:
Zane U. Ji 2020-07-15 01:37:48 +08:00
parent 6eac4c400a
commit 84727f9a6c
1 changed files with 2 additions and 1 deletions

View File

@ -311,7 +311,8 @@ int XmlPromptGenerator::parseGrammar
( publicId , systemId , baseFileName ) );
if ( !source.get() )
{
wxLogError ( _T("Cann't open '%s'"), systemId.c_str() );
if ( !( publicId.empty() && systemId.empty() ) )
wxLogError ( _T("Cann't open '%s'"), systemId.c_str() );
return XML_STATUS_ERROR;
}