X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b143cf708ba5e419de4c3d0b03640eedb6b926d1..6e0fbb3dbf4501b4113f2d5fe775850b7dabc477:/samples/thread/thread.cpp diff --git a/samples/thread/thread.cpp b/samples/thread/thread.cpp index c93424a99f..d85db154a4 100644 --- a/samples/thread/thread.cpp +++ b/samples/thread/thread.cpp @@ -363,6 +363,9 @@ MyApp::MyApp() // `Main program' equivalent, creating windows and returning main app frame bool MyApp::OnInit() { + if ( !wxApp::OnInit() ) + return false; + // uncomment this to get some debugging messages from the trace code // on the console (or just set WXTRACE env variable to include "thread") //wxLog::AddTraceMask("thread");