Fixes 485

This commit is contained in:
Jeffrey N. Johnson 2019-11-02 11:16:22 -07:00
parent 3f79dc370c
commit bffc262c23

View file

@ -111,6 +111,9 @@ void Error( const char *error, ... ){
} }
} }
// If a game has been selected in the global preferences, we can let
// the player edit that game's preferences to try to get it to work.
if (g_PrefsDlg.m_bSetGame) {
strcat( text, _( "An unrecoverable error has occured.\n" strcat( text, _( "An unrecoverable error has occured.\n"
"Would you like to edit Preferences before exiting Radiant?" ) ); "Would you like to edit Preferences before exiting Radiant?" ) );
@ -121,6 +124,12 @@ void Error( const char *error, ... ){
g_PrefsDlg.LoadPrefs(); g_PrefsDlg.LoadPrefs();
g_PrefsDlg.DoModal(); g_PrefsDlg.DoModal();
} }
}
else {
strcat( text, _( "An unrecoverable error has occured." ) );
Sys_Printf( text );
gtk_MessageBox( NULL, text, _( "Error" ), MB_ICONEXCLAMATION );
}
QGL_Shutdown(); QGL_Shutdown();