mirror of
https://github.com/python/cpython.git
synced 2025-08-21 09:21:18 +00:00
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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue