X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/42447c4f88d5519d1f7109d51d4874bbee60a360..4e7b25f056b1c983eb35d3f71ba67da84a15be19:/samples/help/demo.cpp?ds=sidebyside diff --git a/samples/help/demo.cpp b/samples/help/demo.cpp index 34fd0eb0f8..7749c96fc8 100644 --- a/samples/help/demo.cpp +++ b/samples/help/demo.cpp @@ -223,7 +223,7 @@ enum HelpDemo_Help_GNOME, HelpDemo_Help_Netscape, // controls start here (the numbers are, of course, arbitrary) - HelpDemo_Text = 1000, + HelpDemo_Text = 1000 }; // ---------------------------------------------------------------------------- @@ -287,6 +287,9 @@ IMPLEMENT_APP(MyApp) // `Main program' equivalent: the program execution "starts" here bool MyApp::OnInit() { + if ( !wxApp::OnInit() ) + return false; + // Create a simple help provider to make SetHelpText() do something. // Note that this must be set before any SetHelpText() calls are made. #if USE_SIMPLE_HELP_PROVIDER