Skip to content

Commit 87b488e

Browse files
committed
Use wxApp::GetInstance in i_wxPyCheckForApp instead of wxTheApp
1 parent b2155f0 commit 87b488e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wxpy_api.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ PyObject* i_wxVariant_out_helper(const wxVariant& value)
439439
PyObject* wxPyNoAppError = NULL;
440440

441441
bool i_wxPyCheckForApp(bool raiseException) {
442-
if (wxTheApp != NULL)
442+
if (wxApp::GetInstance() != NULL)
443443
return true;
444444
else {
445445
if (raiseException)

0 commit comments

Comments
 (0)