mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 03:16:10 +00:00
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:
parent
b07495e7bf
commit
2ea8dacabc
@ -18,6 +18,7 @@
|
|||||||
<object-type name="CutterDockWidget" />
|
<object-type name="CutterDockWidget" />
|
||||||
|
|
||||||
<template name="plugin_meta_get">
|
<template name="plugin_meta_get">
|
||||||
|
Shiboken::GilState cutterGil;
|
||||||
SbkObject *wrapper = Shiboken::BindingManager::instance().retrieveWrapper(this);
|
SbkObject *wrapper = Shiboken::BindingManager::instance().retrieveWrapper(this);
|
||||||
PyObject *classObject = PyObject_GetAttrString(reinterpret_cast<PyObject *>(wrapper), "__class__");
|
PyObject *classObject = PyObject_GetAttrString(reinterpret_cast<PyObject *>(wrapper), "__class__");
|
||||||
if (!classObject) {
|
if (!classObject) {
|
||||||
|
Loading…
Reference in New Issue
Block a user