Don't show error dialog when no XML entity is specified
This commit is contained in:
parent
6eac4c400a
commit
84727f9a6c
|
@ -311,6 +311,7 @@ int XmlPromptGenerator::parseGrammar
|
||||||
( publicId , systemId , baseFileName ) );
|
( publicId , systemId , baseFileName ) );
|
||||||
if ( !source.get() )
|
if ( !source.get() )
|
||||||
{
|
{
|
||||||
|
if ( !( publicId.empty() && systemId.empty() ) )
|
||||||
wxLogError ( _T("Cann't open '%s'"), systemId.c_str() );
|
wxLogError ( _T("Cann't open '%s'"), systemId.c_str() );
|
||||||
return XML_STATUS_ERROR;
|
return XML_STATUS_ERROR;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue