mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-10 03:51:18 +00:00
Fixes 485
This commit is contained in:
parent
3f79dc370c
commit
bffc262c23
1 changed files with 16 additions and 7 deletions
|
@ -111,15 +111,24 @@ void Error( const char *error, ... ){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
strcat( text, _( "An unrecoverable error has occured.\n"
|
// If a game has been selected in the global preferences, we can let
|
||||||
"Would you like to edit Preferences before exiting Radiant?" ) );
|
// 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"
|
||||||
|
"Would you like to edit Preferences before exiting Radiant?" ) );
|
||||||
|
|
||||||
Sys_Printf( text );
|
Sys_Printf( text );
|
||||||
|
|
||||||
if ( gtk_MessageBox( NULL, text, _( "Error" ), MB_YESNO ) == IDYES ) {
|
if ( gtk_MessageBox( NULL, text, _( "Error" ), MB_YESNO ) == IDYES ) {
|
||||||
Sys_Printf( "Doing prefs..\n" );
|
Sys_Printf( "Doing prefs..\n" );
|
||||||
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();
|
||||||
|
|
Loading…
Reference in a new issue