X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/749bfe9a6de1187def2b26c0cbbb249c1548c1ac..f696015cf1e474315b63823d697a5fa0462055b7:/samples/config/conftest.cpp diff --git a/samples/config/conftest.cpp b/samples/config/conftest.cpp index 112e79056d..aea01ea493 100644 --- a/samples/config/conftest.cpp +++ b/samples/config/conftest.cpp @@ -85,6 +85,9 @@ IMPLEMENT_APP(MyApp) // `Main program' equivalent, creating windows and returning main app frame bool MyApp::OnInit() { + if ( !wxApp::OnInit() ) + return false; + // we're using wxConfig's "create-on-demand" feature: it will create the // config object when it's used for the first time. It has a number of // advantages compared with explicitly creating our wxConfig: