aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativeengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/qml/qdeclarativeengine.cpp')
-rw-r--r--src/declarative/qml/qdeclarativeengine.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/declarative/qml/qdeclarativeengine.cpp b/src/declarative/qml/qdeclarativeengine.cpp
index 93d2fa9491..5de1e573e6 100644
--- a/src/declarative/qml/qdeclarativeengine.cpp
+++ b/src/declarative/qml/qdeclarativeengine.cpp
@@ -451,9 +451,9 @@ void QDeclarativeEnginePrivate::init()
QDeclarativeEngineDebugService::isDebuggingEnabled()) {
isDebugging = true;
QDeclarativeEngineDebugService::instance()->addEngine(q);
- QV8DebugService::instance()->addEngine(q);
- QV8ProfilerService::instance()->addEngine(q);
- QDeclarativeDebugTrace::addEngine(q);
+ QV8DebugService::initialize();
+ QV8ProfilerService::initialize();
+ QDeclarativeDebugTrace::initialize();
}
}
@@ -518,9 +518,6 @@ QDeclarativeEngine::~QDeclarativeEngine()
Q_D(QDeclarativeEngine);
if (d->isDebugging) {
QDeclarativeEngineDebugService::instance()->remEngine(this);
- QV8DebugService::instance()->removeEngine(this);
- QV8ProfilerService::instance()->removeEngine(this);
- QDeclarativeDebugTrace::removeEngine(this);
}
// if we are the parent of any of the qobject module api instances,