From: Jay Freeman (saurik) Date: Sat, 23 Jul 2016 10:38:02 +0000 (-0700) Subject: wxMessageBox off the main thread lost result code. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/HEAD wxMessageBox off the main thread lost result code. --- diff --git a/src/osx/cocoa/msgdlg.mm b/src/osx/cocoa/msgdlg.mm index fb52f0a7a0..d085edb24d 100644 --- a/src/osx/cocoa/msgdlg.mm +++ b/src/osx/cocoa/msgdlg.mm @@ -152,6 +152,7 @@ int wxMessageDialog::ShowModal() defaultButtonTitle, alternateButtonTitle, otherButtonTitle, &exitButton ); if (err == noErr) resultbutton = m_buttonId[exitButton]; + SetReturnCode(resultbutton); } else {