X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5f4d35b8045442f97ed74ba2aa633e843adae7ef..c54e5eb0f6888c627547f882388df3cd86354a2f:/contrib/samples/mmedia/mmboard.cpp diff --git a/contrib/samples/mmedia/mmboard.cpp b/contrib/samples/mmedia/mmboard.cpp index 3015dd5308..f7b3037086 100644 --- a/contrib/samples/mmedia/mmboard.cpp +++ b/contrib/samples/mmedia/mmboard.cpp @@ -425,8 +425,10 @@ void MMBoardFrame::OnOpen(wxCommandEvent& WXUNUSED(event)) } // select a file to be opened +#if wxUSE_FILEDLG selected_file = wxLoadFileSelector(_T("multimedia"), _T("*"), NULL, this); - if (selected_file.IsNull()) +#endif // wxUSE_FILEDLG + if (selected_file.empty()) return; m_opened_file = MMBoardManager::Open(selected_file); @@ -590,4 +592,3 @@ void MMBoardFrame::OnSetPosition(wxCommandEvent& WXUNUSED(event)) UpdateMMedInfo(); } -