]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44828: macOS installer: avoid leaving a zombie Save panel in Tk 8.6.12rc1 (GH...
authorNed Deily <nad@python.org>
Tue, 2 Nov 2021 21:01:37 +0000 (17:01 -0400)
committerGitHub <noreply@github.com>
Tue, 2 Nov 2021 21:01:37 +0000 (17:01 -0400)
Mac/BuildScript/bpo-44828-filedialog-crash-monterey-8612rc1.patch [new file with mode: 0644]
Mac/BuildScript/build-installer.py

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 (file)
index 0000000..e70e2c3
--- /dev/null
@@ -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];
index 9db2616bc75baf88c4043db363ab88fc2d384fe4..1f6fcafc6f92c96baf00001abfb071ecfcb24dbe 100755 (executable)
@@ -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([