From 931d6a47c32a5b4c283243cb553ce71ee2b535d5 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 23 Jul 2016 03:38:02 -0700 Subject: [PATCH] wxMessageBox off the main thread lost result code. --- src/osx/cocoa/msgdlg.mm | 1 + 1 file changed, 1 insertion(+) 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 { -- 2.45.2