summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Deily <nad@python.org>2021-11-04 16:21:25 -0400
committerGitHub <noreply@github.com>2021-11-04 21:21:25 +0100
commit10b0c671580a2f8dd013b6345c1dc9789d5bd95c (patch)
treefca09c94962a73ae0d5c037f2cb93777723d626a
parent76658e5bdbdf57464f4b43f1625c02c2ba4222dd (diff)
downloadcpython-git-10b0c671580a2f8dd013b6345c1dc9789d5bd95c.tar.gz
bpo-44828: Avoid leaving a zombie Save panel (GH-29372)
Patch by Marc Culler of the Tk project.
-rw-r--r--Mac/BuildScript/bpo-44828-filedialog-crash-monterey.patch3
1 files changed, 2 insertions, 1 deletions
diff --git a/Mac/BuildScript/bpo-44828-filedialog-crash-monterey.patch b/Mac/BuildScript/bpo-44828-filedialog-crash-monterey.patch
index 1d06329fff..059149250f 100644
--- a/Mac/BuildScript/bpo-44828-filedialog-crash-monterey.patch
+++ b/Mac/BuildScript/bpo-44828-filedialog-crash-monterey.patch
@@ -18,7 +18,7 @@
if (returnCode >= NSAlertFirstButtonReturn) {
Tcl_Obj *resultObj = Tcl_NewStringObj(alertButtonStrings[
-@@ -350,49 +350,41 @@
+@@ -350,49 +350,42 @@
FilePanelCallbackInfo *callbackInfo)
{
NSInteger modalReturnCode;
@@ -85,6 +85,7 @@
- [panel close];
+ returnCode:modalReturnCode
+ contextInfo:callbackInfo ];
++ [parent endSheet:panel];
}
+ } else {
+ modalReturnCode = [panel runModal];