aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/debugger/qdeclarativeenginedebugservice.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2011-11-21 16:03:53 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-23 13:21:59 +0100
commit92b4c1abcfc64855cd73733f136a86435e562beb (patch)
tree279eaa8e12dc4ea58b4c375de944f4b316af4288 /src/declarative/debugger/qdeclarativeenginedebugservice.cpp
parent4e9301e3d53febcf6b0dfe108c4189c2982952ff (diff)
Debugger: Make registration of services explicit
Services now have to call registerService() themselves in the constructor. This fixes a race condition where the empty implementation of messageReceived() was called instead of the one in the subclass because the object wasn't fully constructed yet. Change-Id: I590ec8b76e906bdb6b5cdcb18680938edde283ee Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Diffstat (limited to 'src/declarative/debugger/qdeclarativeenginedebugservice.cpp')
-rw-r--r--src/declarative/debugger/qdeclarativeenginedebugservice.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/debugger/qdeclarativeenginedebugservice.cpp b/src/declarative/debugger/qdeclarativeenginedebugservice.cpp
index ac188b0789..501e60096b 100644
--- a/src/declarative/debugger/qdeclarativeenginedebugservice.cpp
+++ b/src/declarative/debugger/qdeclarativeenginedebugservice.cpp
@@ -72,6 +72,8 @@ QDeclarativeEngineDebugService::QDeclarativeEngineDebugService(QObject *parent)
{
QObject::connect(m_watch, SIGNAL(propertyChanged(int,int,QMetaProperty,QVariant)),
this, SLOT(propertyChanged(int,int,QMetaProperty,QVariant)));
+
+ registerService();
}
QDataStream &operator<<(QDataStream &ds,