]> git.saurik.com Git - wxWidgets.git/commitdiff
wxMessageBox off the main thread lost result code. master
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 23 Jul 2016 10:38:02 +0000 (03:38 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 23 Jul 2016 10:38:02 +0000 (03:38 -0700)
src/osx/cocoa/msgdlg.mm

index fb52f0a7a014531c5f712520882554250e1fd389..d085edb24d4c0fcd7104770da47f5549ec5ffb3e 100644 (file)
@@ -152,6 +152,7 @@ int wxMessageDialog::ShowModal()
             defaultButtonTitle, alternateButtonTitle, otherButtonTitle, &exitButton );
         if (err == noErr)
             resultbutton = m_buttonId[exitButton];
+        SetReturnCode(resultbutton);
     }
     else
     {