Skip to content

Commit 10b0c67

Browse files
authored
bpo-44828: Avoid leaving a zombie Save panel (GH-29372)
Patch by Marc Culler of the Tk project.
1 parent 76658e5 commit 10b0c67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Mac/BuildScript/bpo-44828-filedialog-crash-monterey.patch

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
if (returnCode >= NSAlertFirstButtonReturn) {
2020
Tcl_Obj *resultObj = Tcl_NewStringObj(alertButtonStrings[
21-
@@ -350,49 +350,41 @@
21+
@@ -350,49 +350,42 @@
2222
FilePanelCallbackInfo *callbackInfo)
2323
{
2424
NSInteger modalReturnCode;
@@ -85,6 +85,7 @@
8585
- [panel close];
8686
+ returnCode:modalReturnCode
8787
+ contextInfo:callbackInfo ];
88+
+ [parent endSheet:panel];
8889
}
8990
+ } else {
9091
+ modalReturnCode = [panel runModal];

0 commit comments

Comments
 (0)