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) {
|
if (returnCode >= NSAlertFirstButtonReturn) {
|
||||||
Tcl_Obj *resultObj = Tcl_NewStringObj(alertButtonStrings[
|
Tcl_Obj *resultObj = Tcl_NewStringObj(alertButtonStrings[
|
||||||
@@ -350,49 +350,41 @@
|
@@ -350,49 +350,42 @@
|
||||||
FilePanelCallbackInfo *callbackInfo)
|
FilePanelCallbackInfo *callbackInfo)
|
||||||
{
|
{
|
||||||
NSInteger modalReturnCode;
|
NSInteger modalReturnCode;
|
||||||
|
@ -85,6 +85,7 @@
|
||||||
- [panel close];
|
- [panel close];
|
||||||
+ returnCode:modalReturnCode
|
+ returnCode:modalReturnCode
|
||||||
+ contextInfo:callbackInfo ];
|
+ contextInfo:callbackInfo ];
|
||||||
|
+ [parent endSheet:panel];
|
||||||
}
|
}
|
||||||
+ } else {
|
+ } else {
|
||||||
+ modalReturnCode = [panel runModal];
|
+ modalReturnCode = [panel runModal];
|
||||||
|
|
Loading…
Reference in New Issue