mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
- Raise console window on input. Fixes Carbon hang.
- Better handling of menu bar save/restore. - Override abort() so it honours the "keep console window" flag.
This commit is contained in:
parent
ee677913df
commit
15f1c08d96
3 changed files with 32 additions and 4 deletions
|
|
@ -567,7 +567,16 @@ PyMac_OutputNotSeen()
|
|||
PyMac_InitMenuBar();
|
||||
console_output_state = STATE_LASTWRITE;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Override abort() - The default one is not what we want.
|
||||
*/
|
||||
void
|
||||
abort()
|
||||
{
|
||||
console_output_state = STATE_LASTWRITE;
|
||||
PyMac_Exit(1);
|
||||
}
|
||||
|
||||
/*
|
||||
** Terminate application
|
||||
|
|
@ -605,6 +614,7 @@ PyMac_Exit(status)
|
|||
SIOUXSettings.standalone = 1;
|
||||
SIOUXSettings.autocloseonquit = 0;
|
||||
SIOUXSetTitle("\p\307terminated\310");
|
||||
PyMac_RaiseConsoleWindow();
|
||||
PyMac_RestoreMenuBar();
|
||||
#ifdef USE_MSL
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue