diff options
Diffstat (limited to 'academic/scidavis/integration_with_python_crash_bug_320.patch')
-rw-r--r-- | academic/scidavis/integration_with_python_crash_bug_320.patch | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/academic/scidavis/integration_with_python_crash_bug_320.patch b/academic/scidavis/integration_with_python_crash_bug_320.patch deleted file mode 100644 index bef207656d..0000000000 --- a/academic/scidavis/integration_with_python_crash_bug_320.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff --git a/libscidavis/src/PythonScript.cpp b/libscidavis/src/PythonScript.cpp -index 27d4eec..a8b8ac2 100644 ---- a/libscidavis/src/PythonScript.cpp -+++ b/libscidavis/src/PythonScript.cpp -@@ -43,6 +43,7 @@ PythonScript::PythonScript(PythonScripting *env, const QString &code, QObject *c - : Script(env, code, context, name) - { - PyCode = NULL; -+ PyGILState_STATE state = PyGILState_Ensure(); - // Old: All scripts share a global namespace, and module top-level has its own nonstandard local namespace - modLocalDict = PyDict_New(); - // A bit of a hack, but we need either IndexError or len() from __builtins__. -@@ -71,6 +72,7 @@ PythonScript::PythonScript(PythonScripting *env, const QString &code, QObject *c - else - PyErr_Print(); - // "self" is unique to each script, so they can't all run in the __main__ namespace -+ PyGILState_Release(state); - setQObject(Context, "self"); - } - |