Commit 716ada3c authored by Thomas Gubler's avatar Thomas Gubler

HIL UI: cleanup on simComboBox change

parent 37f78c92
......@@ -24,6 +24,14 @@ QGCHilConfiguration::~QGCHilConfiguration()
void QGCHilConfiguration::on_simComboBox_currentIndexChanged(int index)
{
//clean up
QLayoutItem *child;
while ((child = ui->simulatorConfigurationLayout->takeAt(0)) != 0)
{
delete child->widget();
delete child;
}
if(1 == index)
{
// Ensure the sim exists and is disabled
......
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