From 016cdad413c878be9c669398cd707ff5d1d98255 Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Wed, 6 Nov 2013 12:45:23 +0100 Subject: Restart on the wizard needs to cleanup component left-overs - use two different script engine instances - one which lives from the beginning -> the controlScriptEngine - the other one which will be reset if there are some new repositories loaded - now the core has a pointer to the gui object, but it should only be used by the script engine so a QObject type should be enough - engines are deleted as QObject children from the PackageManagerCore - registered downloaded archives are removed Change-Id: I60a4a32fb2e409059839ec11b10c57357454f57a Reviewed-by: Michal Klocek Reviewed-by: Karsten Heimrich --- tests/auto/installer/scriptengine/tst_scriptengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auto/installer/scriptengine') diff --git a/tests/auto/installer/scriptengine/tst_scriptengine.cpp b/tests/auto/installer/scriptengine/tst_scriptengine.cpp index b626d5a2e..5c67afd0c 100644 --- a/tests/auto/installer/scriptengine/tst_scriptengine.cpp +++ b/tests/auto/installer/scriptengine/tst_scriptengine.cpp @@ -61,7 +61,7 @@ private slots: m_component->setValue("Default", "Script"); m_component->setValue(scName, "component.test.name"); - m_scriptEngine = m_core.scriptEngine(); + m_scriptEngine = m_core.componentScriptEngine(); } void testBrokenJSMethodConnect() -- cgit v1.2.3