]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/sound/sound.cpp
don't output -DwxUSE_GUI=0 in cflags by default, do output it if 'base' is specified...
[wxWidgets.git] / samples / sound / sound.cpp
index a517d1a4059b9cf1a4ff7282d77f10a5a5241d8d..4c4c869c8368bf26f32ed8a56f4f9269eb00b9d3 100644 (file)
@@ -159,6 +159,9 @@ IMPLEMENT_APP(MyApp)
 // 'Main program' equivalent: the program execution "starts" here
 bool MyApp::OnInit()
 {
+    if ( !wxApp::OnInit() )
+        return false;
+
     // create the main application window
     MyFrame *frame = new MyFrame(_T("wxWidgets Sound Sample"));