QmlDebug: A QML debug client is only enabled if the service is

Change-Id: I7d9360a46dfa7a73a791bbff91492a15e4f2f5de
Task-number: QTCREATORBUG-15806
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2016-04-13 11:25:38 +02:00
parent 54e96679fc
commit e8bff43f24

View File

@@ -490,7 +490,7 @@ QmlDebugClient::State QmlDebugClient::state() const
if (!d->connection || !d->connection->isConnected())
return NotConnected;
if (d->connection->client(d->name) == this)
if (d->connection->serviceVersion(d->name) != -1)
return Enabled;
return Unavailable;