]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/samples/mmedia/mmboard.cpp
wxOS2/OW warning and build fixes.
[wxWidgets.git] / contrib / samples / mmedia / mmboard.cpp
index 3015dd5308f565c1de9d7500fb2ad0b214e9bf33..f7b303708661e5273fa0f5407529ba58fdfeed26 100644 (file)
@@ -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();
 }
-