Commit 45b5f734 authored by Ulf Hermann's avatar Ulf Hermann
Browse files

QmlProfiler: Don't try to disconnect connections that don't exist



Change-Id: Ic87b3808a9d6aae12dfa6fe8664a4669d56fe37d
Task-number: QTCREATORBUG-14698
Reviewed-by: default avatarRobert Loehning <robert.loehning@theqtcompany.com>
parent e2b0641f
......@@ -290,9 +290,11 @@ void QmlProfilerClientManager::logState(const QString &msg)
void QmlProfilerClientManager::retryMessageBoxFinished(int result)
{
QTC_ASSERT(!d->connection->isOpen(), return);
if (d->connection->isConnecting())
d->connection->disconnect();
if (d->connection) {
QTC_ASSERT(!d->connection->isOpen(), return);
if (d->connection->isConnecting())
d->connection->disconnect();
}
switch (result) {
case QMessageBox::Retry: {
......
Markdown is supported
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