don't call base class OnOk() directly, use EndDialog() instead
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
2158f4d798
commit
86508681d4
@ -167,7 +167,7 @@ wxDirDialog::wxDirDialog(wxWindow* parent, const wxString& title,
|
||||
void wxDirDialog::OnFakeOk( wxCommandEvent &event )
|
||||
{
|
||||
if (!gtk_check_version(2,4,0))
|
||||
wxDialog::OnOK( event );
|
||||
EndDialog(wxID_OK);
|
||||
else
|
||||
wxGenericDirDialog::OnOK( event );
|
||||
}
|
||||
|
@ -273,7 +273,7 @@ wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message,
|
||||
void wxFileDialog::OnFakeOk( wxCommandEvent &event )
|
||||
{
|
||||
if (!gtk_check_version(2,4,0))
|
||||
wxDialog::OnOK( event );
|
||||
EndDialog(wxID_OK);
|
||||
else
|
||||
wxGenericFileDialog::OnListOk( event );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user