mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 04:20:07 +01:00
Use wxApp::GetInstance in i_wxPyCheckForApp instead of wxTheApp
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user