X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b143cf708ba5e419de4c3d0b03640eedb6b926d1..26ee65c723cf55822c540506f064ec11d9b26858:/samples/popup/popup.cpp diff --git a/samples/popup/popup.cpp b/samples/popup/popup.cpp index a1ae9ed6ca..14075eaae7 100644 --- a/samples/popup/popup.cpp +++ b/samples/popup/popup.cpp @@ -289,6 +289,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 m_frame = new MyFrame(_T("Popup wxWidgets App"));