Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e44545f

Browse files
committed
Workaround for bug in MSL and CWGUSI interaction that stopped the
"don't close window on exit" feature to work.
1 parent 3089b7e commit e44545f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Mac/Python/macmain.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,13 @@ PyMac_Exit(status)
454454
SIOUXSettings.standalone = 1;
455455
SIOUXSettings.autocloseonquit = 0;
456456
SIOUXSetTitle("\p\307terminated\310");
457+
#ifdef USE_MSL
458+
/*
459+
** Temporary workaround: autocloseonquit clearing does not
460+
** currently work for the MSL/GUSI combo.
461+
*/
462+
while(getchar() > 0);
463+
#endif
457464
}
458465
else
459466
SIOUXSettings.autocloseonquit = 1;

0 commit comments

Comments
 (0)