From 3ae463d1f203c579a196199d0686b61777f99ca2 Mon Sep 17 00:00:00 2001 From: Matthew Budd Date: Sun, 29 Nov 2020 00:04:20 -0500 Subject: [PATCH] Bug fix for Qt GUI crashing when to load a non-existant ROM via the command line. --- src/drivers/Qt/fceuWrapper.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/drivers/Qt/fceuWrapper.cpp b/src/drivers/Qt/fceuWrapper.cpp index 79abd540..1bc35efe 100644 --- a/src/drivers/Qt/fceuWrapper.cpp +++ b/src/drivers/Qt/fceuWrapper.cpp @@ -107,7 +107,10 @@ void FCEUD_PrintError(const char *errormsg) { fprintf(stderr, "%s\n", errormsg); - consoleWindow->QueueErrorMsgWindow( errormsg ); + if ( consoleWindow ) + { + consoleWindow->QueueErrorMsgWindow( errormsg ); + } } /**