mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-19 10:58:51 +00:00
Segfault fix
This commit is contained in:
parent
5001d395af
commit
152503a936
@ -81,7 +81,9 @@ void JupyterConnection::initPython()
|
|||||||
|
|
||||||
void JupyterConnection::createCutterJupyterModule()
|
void JupyterConnection::createCutterJupyterModule()
|
||||||
{
|
{
|
||||||
PyEval_RestoreThread(pyThreadState);
|
if (pyThreadState) {
|
||||||
|
PyEval_RestoreThread(pyThreadState);
|
||||||
|
}
|
||||||
|
|
||||||
QFile moduleFile(":/python/cutter_jupyter.py");
|
QFile moduleFile(":/python/cutter_jupyter.py");
|
||||||
moduleFile.open(QIODevice::ReadOnly);
|
moduleFile.open(QIODevice::ReadOnly);
|
||||||
|
Loading…
Reference in New Issue
Block a user