]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/msgdlg.mm
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / 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
     {