diff --git a/src/scriptapi/scripting.cpp b/src/scriptapi/scripting.cpp index 3ef50ba2..5f56008f 100644 --- a/src/scriptapi/scripting.cpp +++ b/src/scriptapi/scripting.cpp @@ -119,8 +119,8 @@ bool Scripting::tryErrorJS(QJSValue js) { // The script engine is interrupted during project reopen, during which // all script modules intentionally return as error objects. // We don't need to report these "errors" to the user. - //if (errStr == "Error: Interrupted") - // return false; + if (errStr == "Error: Interrupted") + return false; // Convert properties to message strings QString fileErrStr = fileName == "undefined" ? "" : QString(" '%1'").arg(fileName);