forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/3.6'
Change-Id: I68512c775ed25b51c8b0abe1818c9c7c5955874c
This commit is contained in:
@@ -120,8 +120,15 @@ void QmlProfilerClientManager::discardPendingData()
|
||||
|
||||
void QmlProfilerClientManager::connectClient(quint16 port)
|
||||
{
|
||||
if (d->connection)
|
||||
delete d->connection;
|
||||
if (d->connection) {
|
||||
if (port == d->tcpPort) {
|
||||
tryToConnect();
|
||||
return;
|
||||
} else {
|
||||
delete d->connection;
|
||||
}
|
||||
}
|
||||
|
||||
d->connection = new QmlDebugConnection;
|
||||
enableServices();
|
||||
connect(d->connection, SIGNAL(stateMessage(QString)), this, SLOT(logState(QString)));
|
||||
|
||||
Reference in New Issue
Block a user