Commit 812348fb authored by Lorenz Meier's avatar Lorenz Meier

Merge pull request #564 from DonLakeFlyer/ConnectFix

Failed QObject::Connect fix
parents 4818b4e4 4c8449c8
......@@ -95,9 +95,11 @@ void QGCConfigView::activeUASChanged(UASInterface* uas)
}
}
else {
//restore waiting label if we no longer have a connection
ui->gridLayout->addWidget(ui->waitingLabel);
ui->waitingLabel->setVisible(true);
if (ui->waitingLabel) {
//restore waiting label if we no longer have a connection
ui->gridLayout->addWidget(ui->waitingLabel);
ui->waitingLabel->setVisible(true);
}
}
}
......@@ -195,11 +195,6 @@ void UASListWidget::addUAS(UASInterface* uas)
uasViews.insert(uas, newView);
uasToBoxMapping[uas] = newBox;
newBox->layout()->addWidget(newView);
// Watch for when this widget is destroyed so that we can clean up the
// groupbox if necessary.
connect(newView, SIGNAL(destroyed(QObject*)),
this, SLOT(removeUASView(QObject*)));
}
}
}
......@@ -243,6 +238,7 @@ void UASListWidget::removeUAS(UASInterface* uas)
if (i.value() == box)
{
linkToBoxMapping.remove(i.key());
break;
}
++i;
}
......
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