forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user