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 b2155f004b
commit 87b488e4e9

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)