mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-18 08:54:15 +01:00
GCS-Only update the aiframe config widget after all relevant objects are updated
This was deleted by someone with any aparent reason.
This commit is contained in:
parent
ca7ce48a4e
commit
f8387bfaaa
@ -471,11 +471,10 @@ void ConfigVehicleTypeWidget::refreshWidgetsValues(UAVObject * o)
|
||||
{
|
||||
Q_UNUSED(o);
|
||||
|
||||
//if(!allObjectsUpdated())
|
||||
// return;
|
||||
if(!allObjectsUpdated())
|
||||
return;
|
||||
|
||||
//WHAT DOES THIS DO?
|
||||
bool dirty=isDirty(); //WHY IS THIS CALLED HERE AND THEN AGAIN SEVERAL LINES LATER IN setupAirframeUI()
|
||||
bool dirty=isDirty();
|
||||
|
||||
// Get the Airframe type from the system settings:
|
||||
UAVDataObject* system = dynamic_cast<UAVDataObject*>(getObjectManager()->getObject(QString("SystemSettings")));
|
||||
|
@ -553,11 +553,13 @@ void ConfigTaskWidget::objectUpdated(UAVObject *obj)
|
||||
*/
|
||||
bool ConfigTaskWidget::allObjectsUpdated()
|
||||
{
|
||||
qDebug()<<"ConfigTaskWidge:allObjectsUpdated called";
|
||||
bool ret=true;
|
||||
foreach(UAVObject *obj, objectUpdates.keys())
|
||||
{
|
||||
ret=ret & objectUpdates[obj];
|
||||
}
|
||||
qDebug()<<"Returned:"<<ret;
|
||||
return ret;
|
||||
}
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user