diff --git a/src/core/Cutter.cpp b/src/core/Cutter.cpp index d2596bb8..e303f66c 100644 --- a/src/core/Cutter.cpp +++ b/src/core/Cutter.cpp @@ -2647,6 +2647,7 @@ QString CutterCore::bytesToHexString(const QByteArray &bytes) void CutterCore::loadScript(const QString &scriptname) { + CORE_LOCK(); r_core_task_sync_begin(core_); r_core_cmd_file(core_, scriptname.toUtf8().constData()); r_core_task_sync_end(core_);