From 96bf32b86a94927209a534aa99697975ccb4f40e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Sun, 23 Sep 2018 21:57:20 +0200 Subject: [PATCH] Fix CutterCore::loadScript() for sleeping --- src/Cutter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Cutter.cpp b/src/Cutter.cpp index cb1a8865..9147b4cd 100644 --- a/src/Cutter.cpp +++ b/src/Cutter.cpp @@ -2120,7 +2120,9 @@ QList CutterCore::disassembleLines(RVA offset, int lines) void CutterCore::loadScript(const QString &scriptname) { + r_core_task_sync_begin(core_); r_core_cmd_file(core_, scriptname.toUtf8().constData()); + r_core_task_sync_end(core_); } QString CutterCore::getVersionInformation()