From 4a8b4051734fd2ce46e15e6369811132ac3a5697 Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Tue, 2 Nov 2021 17:01:37 -0400 Subject: [PATCH] bpo-44828: macOS installer: avoid leaving a zombie Save panel in Tk 8.6.12rc1 (GH-29367) --- .../bpo-44828-filedialog-crash-monterey-8612rc1.patch | 10 ++++++++++ Mac/BuildScript/build-installer.py | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 Mac/BuildScript/bpo-44828-filedialog-crash-monterey-8612rc1.patch diff --git a/Mac/BuildScript/bpo-44828-filedialog-crash-monterey-8612rc1.patch b/Mac/BuildScript/bpo-44828-filedialog-crash-monterey-8612rc1.patch new file mode 100644 index 00000000000..e70e2c35dc1 --- /dev/null +++ b/Mac/BuildScript/bpo-44828-filedialog-crash-monterey-8612rc1.patch @@ -0,0 +1,10 @@ +--- tk8.6.12/macosx/tkMacOSXDialog.c 2021-10-29 17:08:23.000000000 +0000 ++++ tk8.6.12-patched/macosx/tkMacOSXDialog.c 2021-11-02 19:04:59.000000000 +0000 +@@ -379,6 +379,7 @@ + [NSApp tkFilePanelDidEnd:panel + returnCode:modalReturnCode + contextInfo:callbackInfo ]; ++ [parent endSheet:panel]; + } + } else { + modalReturnCode = [panel runModal]; diff --git a/Mac/BuildScript/build-installer.py b/Mac/BuildScript/build-installer.py index 9db2616bc75..1f6fcafc6f9 100755 --- a/Mac/BuildScript/build-installer.py +++ b/Mac/BuildScript/build-installer.py @@ -269,7 +269,7 @@ def library_recipes(): tcl_checksum='82fd1637c0f7d4b76cb909f8abc373ec' tk_checksum='d63c3b91b86cd8b6fa54e83ef2c5153e' - tk_patches = [ ] + tk_patches = ['bpo-44828-filedialog-crash-monterey-8612rc1.patch'] result.extend([