Skip to content
Snippets Groups Projects
Commit c90cca79 authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlProfiler: Don't print assert when trying to connect a second time


This can happen when e.g. the first attempt failed because of an
unavailable port.

Change-Id: I7e61c6f6d0a65c48c1b7031be95bdabd965fe5ab
Reviewed-by: default avatarChristiaan Janssen <christiaan.janssen@nokia.com>
parent fcaf3d4f
No related branches found
No related tags found
No related merge requests found
......@@ -533,7 +533,8 @@ QWidget *QmlProfilerTool::createWidgets()
void QmlProfilerTool::connectClient(int port)
{
QTC_ASSERT(!d->m_client, return;)
if (d->m_client)
delete d->m_client;
d->m_client = new QDeclarativeDebugConnection;
d->m_traceWindow->reset(d->m_client);
connect(d->m_client, SIGNAL(stateChanged(QAbstractSocket::SocketState)),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment