Revert "Give wxTheApp to python scripts that end up touching Pgm().App()"
This reverts commit 672265b564
This commit is contained in:
parent
b00871ad77
commit
3c0f9ec510
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue