Merge the changes from 3.0 branch.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -517,7 +517,13 @@ IMPLEMENT_DYNAMIC_CLASS(wxWindowModalDialogEvent, wxCommandEvent)
|
||||
|
||||
void wxDialogBase::ShowWindowModal ()
|
||||
{
|
||||
ShowModal();
|
||||
int retval = ShowModal();
|
||||
// wxWindowModalDialogEvent relies on GetReturnCode() returning correct
|
||||
// code. Rather than doing it manually in all ShowModal() overrides for
|
||||
// native dialogs (and getting accidentally broken again), set it here.
|
||||
// The worst that can happen is that it will be set twice to the same
|
||||
// value.
|
||||
SetReturnCode(retval);
|
||||
SendWindowModalDialogEvent ( wxEVT_WINDOW_MODAL_DIALOG_CLOSED );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user