Commit 89a3286f authored by pixhawk's avatar pixhawk

Fixed MAV selection bug in parameter view

parent 966cad30
......@@ -33,8 +33,9 @@ ParameterInterface::~ParameterInterface()
void ParameterInterface::selectUAS(int index)
{
m_ui->stackedWidget->setCurrentIndex(index);
m_ui->sensorSettings->setCurrentIndex(index);
// FIXME plus 2 shouldn't be there
m_ui->stackedWidget->setCurrentIndex(index+2);
m_ui->sensorSettings->setCurrentIndex(index+2);
curr = index;
}
......@@ -57,9 +58,10 @@ void ParameterInterface::addUAS(UASInterface* uas)
// Set widgets as default
if (curr == -1)
{
// Clear
m_ui->sensorSettings->setCurrentWidget(sensor);
m_ui->stackedWidget->setCurrentWidget(param);
curr = uas->getUASID();
curr = 0;
}
}
......
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