diff --git a/src/ui/uas/UASListWidget.cc b/src/ui/uas/UASListWidget.cc index e33cf132c2f38b93ce7a6aea5b8ce3d66e198985..e41d236dff1dc1d7f0a04a754f54554ce0d0394d 100644 --- a/src/ui/uas/UASListWidget.cc +++ b/src/ui/uas/UASListWidget.cc @@ -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; }