QmlObserver: Prevent messages from being sent if there is no server side

Actually this is fixed in QDeclarativeService::sendMessage, too, but the
fix won't be part of 4.7.1, so better double-check.

Reviewed-by: Christiaan Janssen
This commit is contained in:
Kai Koehne
2010-09-28 12:59:29 +02:00
parent eff5ceea64
commit 6929d66ff2
2 changed files with 10 additions and 0 deletions

View File

@@ -236,4 +236,12 @@ QString QDeclarativeObserverService::idStringForObject(QObject *obj) const
return idString;
}
void QDeclarativeObserverService::sendMessage(const QByteArray &message)
{
if (status() != Enabled)
return;
QDeclarativeDebugService::sendMessage(message);
}
} // namespace QmlJSDebugger