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

Change-Id: Ic87b3808a9d6aae12dfa6fe8664a4669d56fe37d
Task-number: QTCREATORBUG-14698
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2015-07-07 13:16:46 +02:00
parent e2b0641f28
commit 45b5f7341e

View File

@@ -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: {