X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/761989ffb536ab51e977142aa018064ef32b539b..77436c4cbac2269e564dc4fcf4494a58feca0af4:/samples/dialogs/dialogs.cpp?ds=sidebyside diff --git a/samples/dialogs/dialogs.cpp b/samples/dialogs/dialogs.cpp index 08d8abd3c7..84ea95b342 100644 --- a/samples/dialogs/dialogs.cpp +++ b/samples/dialogs/dialogs.cpp @@ -399,6 +399,8 @@ void MyFrame::MultiChoice(wxCommandEvent& WXUNUSED(event) ) void MyFrame::FileOpen(wxCommandEvent& WXUNUSED(event) ) { +// wxFAIL_MSG( "Test assert" ); + wxFileDialog dialog(this, "Testing open file dialog", "", "", "*.txt", 0); if (dialog.ShowModal() == wxID_OK) @@ -420,6 +422,9 @@ void MyFrame::FileOpen(wxCommandEvent& WXUNUSED(event) ) // one will use it by default void MyFrame::FileOpen2(wxCommandEvent& WXUNUSED(event) ) { + wxOnAssert( "Test assert.txt", 20, "Test" ); + return; + static wxString s_extDef; wxString path = wxFileSelector( _T("Select the file to load"),