Commit 6929d66f authored by Kai Koehne's avatar Kai Koehne
Browse files

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
parent eff5ceea
......@@ -70,6 +70,8 @@ public:
void reloaded();
QString idStringForObject(QObject *obj) const;
void sendMessage(const QByteArray &message);
public Q_SLOTS:
void selectedColorChanged(const QColor &color);
void contextPathUpdated(const QStringList &contextPath);
......@@ -236,4 +236,12 @@ QString QDeclarativeObserverService::idStringForObject(QObject *obj) const
return idString;
void QDeclarativeObserverService::sendMessage(const QByteArray &message)
if (status() != Enabled)
} // namespace QmlJSDebugger
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment