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