Use wxApp::GetInstance in i_wxPyCheckForApp instead of wxTheApp

This commit is contained in:
Robin Dunn
2018-02-01 20:03:39 -08:00
parent 2956f14ce6
commit 9a8dd85665

View File

@@ -439,7 +439,7 @@ PyObject* i_wxVariant_out_helper(const wxVariant& value)
PyObject* wxPyNoAppError = NULL;
bool i_wxPyCheckForApp(bool raiseException) {
if (wxTheApp != NULL)
if (wxApp::GetInstance() != NULL)
return true;
else {
if (raiseException)