aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/shared/visualtestutil.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/shared/visualtestutil.h b/tests/auto/shared/visualtestutil.h
index 4fdab95d..142aefd2 100644
--- a/tests/auto/shared/visualtestutil.h
+++ b/tests/auto/shared/visualtestutil.h
@@ -204,9 +204,10 @@ namespace QQuickVisualTestUtil
if (!currentStyle.isEmpty() && style == currentStyle)
return false;
- engine.reset(new QQmlEngine);
+ engine.reset();
currentStyle = style;
qmlClearTypeRegistrations();
+ engine.reset(new QQmlEngine);
QQuickStyle::setStyle(style);
QQmlComponent component(engine.data());