Skip to content
Snippets Groups Projects
Commit ee3dfc6a authored by Don Gagne's avatar Don Gagne
Browse files

Fix unneeded QObject::connect which was failing

The connect call was generating debug output to identify that it was
failing. After looking at the code realized that this connect is not
needed. The group box is removed when UASListWidget::removeUAS method
is called.

Second change in the file fixes a crashing bug when the last UAS is
removed. Need to exit the iterator after we modify it.
parent 4818b4e4
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment