Bug fix for Qt GUI crashing when to load a non-existant ROM via the command line.

This commit is contained in:
Matthew Budd 2020-11-29 00:04:20 -05:00
parent ca005b498b
commit 3ae463d1f2
1 changed files with 4 additions and 1 deletions

View File

@ -107,7 +107,10 @@ void FCEUD_PrintError(const char *errormsg)
{
fprintf(stderr, "%s\n", errormsg);
consoleWindow->QueueErrorMsgWindow( errormsg );
if ( consoleWindow )
{
consoleWindow->QueueErrorMsgWindow( errormsg );
}
}
/**