diff --git a/common.pri b/common.pri index 20eedaf..e2a07e5 100644 --- a/common.pri +++ b/common.pri @@ -127,7 +127,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc LIMEREPORT_VERSION_MAJOR = 1 LIMEREPORT_VERSION_MINOR = 5 -LIMEREPORT_VERSION_RELEASE = 10 +LIMEREPORT_VERSION_RELEASE = 11 LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}' DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\" diff --git a/limereport/lrscriptenginemanager.cpp b/limereport/lrscriptenginemanager.cpp index 05dba0a..91bc9bc 100644 --- a/limereport/lrscriptenginemanager.cpp +++ b/limereport/lrscriptenginemanager.cpp @@ -513,9 +513,9 @@ QString ScriptEngineManager::replaceScripts(QString context, QVariant &varValue, #else if (!se->hasUncaughtException()) { varValue = value.toVariant(); - context.replace(scriptTree->children()[i]->script(), value.toString()); + context.replace(item->script(), value.toString()); } else { - context.replace(scriptTree->children()[i]->script(), se->uncaughtException().toString()); + context.replace(item->script(), se->uncaughtException().toString()); } #endif }