summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNed Deily <nad@python.org>2021-11-02 21:02:58 (GMT)
committerGitHub <noreply@github.com>2021-11-02 21:02:58 (GMT)
commit6681a77c52df41636feb213d63ba27a759c7e5f4 (patch)
tree0cc0b8d5b64f0a1335d8bd0a7f3f75822bfc3e3b
parent8d609b29c0f196ecf98f64c3f4b22237b561e6d7 (diff)
downloadcpython-6681a77c52df41636feb213d63ba27a759c7e5f4.zip
cpython-6681a77c52df41636feb213d63ba27a759c7e5f4.tar.gz
cpython-6681a77c52df41636feb213d63ba27a759c7e5f4.tar.bz2
bpo-44828: Avoid leaving a zombie Save panel. (GH-29369)
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 1d06329..0591492 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];