From: Robin Dunn Date: Fri, 29 Apr 2005 19:00:31 +0000 (+0000) Subject: init wxApp->argc and wxApp->argv even when wx has already been initialized X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/10c3910e9bfbe6c456fcc02a272054ae690c5951 init wxApp->argc and wxApp->argv even when wx has already been initialized git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/helpers.cpp b/wxPython/src/helpers.cpp index f37f539eca..9b0c4c79ab 100644 --- a/wxPython/src/helpers.cpp +++ b/wxPython/src/helpers.cpp @@ -451,6 +451,11 @@ void wxPyApp::_BootstrapApp() wxPyEndBlockThreads(blocked); haveInitialized = true; } + else { + this->argc = 0; + this->argv = NULL; + } + // It's now ok to generate exceptions for assertion errors. wxPythonApp->SetStartupComplete(true);