Make sure Qt objects are deleted on the Qt main thread

This commit is contained in:
baldurk
2017-07-17 12:36:20 +01:00
parent 41092e869f
commit a11a00a7b5
@@ -722,7 +722,8 @@ void PythonContext::outstream_del(PyObject *self)
{
PythonContext *context = redirector->context;
delete context;
// delete the context on the UI thread.
GUIInvoke::call([context]() { delete context; });
}
}