mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-09 23:01:55 +00:00
Merge pull request #645 from pbtoast/prefs-circ-deps-485
Simple fix for crash related to circular dependencies in local pref path.
This commit is contained in:
commit
1f6d29eac8
1 changed files with 16 additions and 7 deletions
|
@ -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"
|
||||
"Would you like to edit Preferences before exiting Radiant?" ) );
|
||||
|
||||
|
@ -121,6 +124,12 @@ void Error( const char *error, ... ){
|
|||
g_PrefsDlg.LoadPrefs();
|
||||
g_PrefsDlg.DoModal();
|
||||
}
|
||||
}
|
||||
else {
|
||||
strcat( text, _( "An unrecoverable error has occured." ) );
|
||||
Sys_Printf( text );
|
||||
gtk_MessageBox( NULL, text, _( "Error" ), MB_ICONEXCLAMATION );
|
||||
}
|
||||
|
||||
QGL_Shutdown();
|
||||
|
||||
|
|
Loading…
Reference in a new issue