Ensure python global shutdown after context has closed

This commit is contained in:
baldurk
2017-12-19 17:32:12 +00:00
parent 764b39a23c
commit 0b3d56f9f9
2 changed files with 5 additions and 2 deletions
@@ -467,6 +467,9 @@ void PythonContext::Finish()
void PythonContext::GlobalShutdown()
{
if(!initialised())
return;
// must happen on the UI thread
if(qApp->thread() != QThread::currentThread())
{