Revert "Give wxTheApp to python scripts that end up touching Pgm().App()"

This reverts commit 672265b564
This commit is contained in:
Mark Roszko 2023-10-02 00:23:52 +00:00
parent b00871ad77
commit 3c0f9ec510
1 changed files with 1 additions and 7 deletions

View File

@ -174,13 +174,7 @@ void PGM_BASE::Destroy()
wxApp& PGM_BASE::App()
{
if( wxTheApp == nullptr )
{
// This should only happen with python scripts
wxApp dummy;
return dummy;
}
wxASSERT( wxTheApp );
return *wxTheApp;
}