sdl: don't display gtk error message while in --nogui mode

This commit is contained in:
punkrockguy318 2013-02-14 00:33:28 +00:00
parent e87a8d11e4
commit 1e3d8c7b76
1 changed files with 1 additions and 2 deletions

View File

@ -885,8 +885,7 @@ void FCEUD_Message(const char *text)
void FCEUD_PrintError(const char *errormsg)
{
#ifdef GTK
//if(noGui == 0)
if(gtkIsStarted == true)
if(gtkIsStarted == true && noGui == 0)
{
GtkWidget* d;
d = gtk_message_dialog_new(GTK_WINDOW(MainWindow), GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, errormsg);