Take GIL in the injected code fragment.

Starting with qt 5.15 the part where code is injected already has GIL
released.
This commit is contained in:
Kārlis Seņko 2020-12-15 20:12:59 +02:00 committed by karlis
parent b07495e7bf
commit 2ea8dacabc

View File

@ -18,6 +18,7 @@
<object-type name="CutterDockWidget" />
<template name="plugin_meta_get">
Shiboken::GilState cutterGil;
SbkObject *wrapper = Shiboken::BindingManager::instance().retrieveWrapper(this);
PyObject *classObject = PyObject_GetAttrString(reinterpret_cast&lt;PyObject *&gt;(wrapper), "__class__");
if (!classObject) {