From: Vadim Zeitlin Date: Sat, 19 Aug 2006 23:04:37 +0000 (+0000) Subject: don't call base class OnOk() directly, use EndDialog() instead X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/86508681d4eb3aa0fd9866d20ab3f5988c66cc26 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 --- diff --git a/src/gtk/dirdlg.cpp b/src/gtk/dirdlg.cpp index 18628f6086..de32c610db 100644 --- a/src/gtk/dirdlg.cpp +++ b/src/gtk/dirdlg.cpp @@ -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 ); } diff --git a/src/gtk/filedlg.cpp b/src/gtk/filedlg.cpp index 256220854e..499fe0c07c 100644 --- a/src/gtk/filedlg.cpp +++ b/src/gtk/filedlg.cpp @@ -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 ); }