summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2010-09-30 13:26:05 (GMT)
committerKai Koehne <kai.koehne@nokia.com>2010-09-30 13:35:42 (GMT)
commita1f050fe4217d3a642ab7f4df8e50c21aa51689c (patch)
treedbade527ab520a29637317190125e108ebb0d57e /src/declarative
parentdb0c012d3eb5c5e30b0a932c5301cc03d43ba2ce (diff)
downloadQt-a1f050fe4217d3a642ab7f4df8e50c21aa51689c.zip
Qt-a1f050fe4217d3a642ab7f4df8e50c21aa51689c.tar.gz
Qt-a1f050fe4217d3a642ab7f4df8e50c21aa51689c.tar.bz2
QDeclarativeDebugClient: Make sure status is consistent
When statusChanged() is called during handsake state() was not the same as the argument passed. Fix this by setting gotHello = true _before_ notifying the clients. Reviewed-by: Christiaan Janssen Task-number: QTBUG-14087
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/debugger/qdeclarativedebugclient.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/declarative/debugger/qdeclarativedebugclient.cpp b/src/declarative/debugger/qdeclarativedebugclient.cpp
index ce3faf6..5baaf70 100644
--- a/src/declarative/debugger/qdeclarativedebugclient.cpp
+++ b/src/declarative/debugger/qdeclarativedebugclient.cpp
@@ -136,7 +136,7 @@ void QDeclarativeDebugConnectionPrivate::readyRead()
return;
}
- qDebug() << "Available server side plugins: " << serverPlugins;
+ gotHello = true;
QHash<QString, QDeclarativeDebugClient *>::Iterator iter = plugins.begin();
for (; iter != plugins.end(); ++iter) {
@@ -145,7 +145,6 @@ void QDeclarativeDebugConnectionPrivate::readyRead()
newStatus = QDeclarativeDebugClient::Enabled;
iter.value()->statusChanged(newStatus);
}
- gotHello = true;
}
while (protocol->packetsAvailable()) {