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:
Vadim Zeitlin 2006-08-19 23:04:37 +00:00
parent 2158f4d798
commit 86508681d4
2 changed files with 2 additions and 2 deletions

View File

@ -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 );
}

View File

@ -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 );
}