From 3b360e0f71ea3771e40074b82bede7894e498fd8 Mon Sep 17 00:00:00 2001
From: Arin Alex <arin_a@bk.ru>
Date: Mon, 9 Sep 2019 22:33:13 +0300
Subject: [PATCH] Qt4 build fixed

---
 common.pri                           | 2 +-
 limereport/lrscriptenginemanager.cpp | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

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
     }