Lock Core in CutterCore::loadScript() (#1581)

This commit is contained in:
Florian Märkl 2019-05-22 13:29:26 +02:00 committed by GitHub
parent 5390a7d173
commit a6f4ac2dd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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_);