diff options
author | Kevin Walzer <kw@codebykevin.com> | 2015-12-07 02:02:44 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2015-12-07 02:02:44 (GMT) |
commit | 6aad9c9b454d5334c3e36cd2bf623dae8369defe (patch) | |
tree | 740de6d2fe3af13e22213ec4ef7e027a3d1d93ee /macosx/tkMacOSXDialog.c | |
parent | 3c354d91432f5a951efb12e957299cacdeafb897 (diff) | |
download | tk-6aad9c9b454d5334c3e36cd2bf623dae8369defe.zip tk-6aad9c9b454d5334c3e36cd2bf623dae8369defe.tar.gz tk-6aad9c9b454d5334c3e36cd2bf623dae8369defe.tar.bz2 |
Fix for zombie windows on El Capitan/OS X 10.11; thanks to Marc Culler for patch
Diffstat (limited to 'macosx/tkMacOSXDialog.c')
-rw-r--r-- | macosx/tkMacOSXDialog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tkMacOSXDialog.c b/macosx/tkMacOSXDialog.c index ca17195..0889ee5 100644 --- a/macosx/tkMacOSXDialog.c +++ b/macosx/tkMacOSXDialog.c @@ -1161,7 +1161,7 @@ Tk_MessageBoxObjCmd( [NSApp tkAlertDidEnd:alert returnCode:modalReturnCode contextInfo:callbackInfo]; } - result = (modalReturnCode < 1) ? TCL_OK : TCL_ERROR; + result = (modalReturnCode >= NSAlertFirstButtonReturn) ? TCL_OK : TCL_ERROR; end: [alert release]; return result; |