mirror of https://github.com/python/cpython.git
bpo-44828: Avoid leaving a zombie Save panel. (GH-29371)
Patch by Marc Culler of the Tk project.
This commit is contained in:
parent
e312f38f7b
commit
d53d9e7f4f
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue