Ensure python global shutdown after context has closed

This commit is contained in:
baldurk committed 2017-12-19 17:32:12 +00:00
1 parent 764b39a23c
commit 0b3d56f9f9
2 files changed
+5 -2

No files matched your search

@@ -467,6 +467,9 @@ void PythonContext::Finish()
void PythonContext::GlobalShutdown()
{
if(!initialised())
return;
// must happen on the UI thread
if(qApp->thread() != QThread::currentThread())
{