From: Ned Deily Date: Thu, 4 Nov 2021 20:21:25 +0000 (-0400) Subject: bpo-44828: Avoid leaving a zombie Save panel (GH-29372) X-Git-Tag: v3.8.13~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=10b0c671580a2f8dd013b6345c1dc9789d5bd95c;p=thirdparty%2FPython%2Fcpython.git bpo-44828: Avoid leaving a zombie Save panel (GH-29372) Patch by Marc Culler of the Tk project. --- diff --git a/Mac/BuildScript/bpo-44828-filedialog-crash-monterey.patch b/Mac/BuildScript/bpo-44828-filedialog-crash-monterey.patch index 1d06329fff3f..059149250f8c 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];