mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
Fix bug introduced with PiPX merge where the refreshWidgetsValues(UAVObject *)
gained the parameter. However, objects that had overriden that method were now creating a new method and not getting called at the right time. This fixes the Output and Aircraft type panels
This commit is contained in:
parent
5a6e02a688
commit
a24375ca71
@ -43,7 +43,7 @@ ConfigProHWWidget::ConfigProHWWidget(QWidget *parent) : ConfigTaskWidget(parent)
|
||||
addUAVObjectToWidgetRelation("HwSettings","TelemetrySpeed",m_telemetry->telemetrySpeed);
|
||||
enableControls(false);
|
||||
populateWidgets();
|
||||
refreshWidgetsValues();
|
||||
refreshWidgetsValues(NULL);
|
||||
}
|
||||
|
||||
ConfigProHWWidget::~ConfigProHWWidget()
|
||||
|
@ -242,7 +242,7 @@ void ConfigOutputWidget::sendChannelTest(int index, int value)
|
||||
/**
|
||||
Request the current config from the board (RC Output)
|
||||
*/
|
||||
void ConfigOutputWidget::refreshWidgetsValues()
|
||||
void ConfigOutputWidget::refreshWidgetsValues(UAVObject *)
|
||||
{
|
||||
bool dirty=isDirty();
|
||||
|
||||
|
@ -69,7 +69,7 @@ private:
|
||||
private slots:
|
||||
void stopTests();
|
||||
void disableIfNotMe(UAVObject *obj);
|
||||
virtual void refreshWidgetsValues();
|
||||
virtual void refreshWidgetsValues(UAVObject * obj = NULL);
|
||||
void updateObjectsFromWidgets();
|
||||
void runChannelTests(bool state);
|
||||
void sendChannelTest(int index, int value);
|
||||
|
@ -525,7 +525,7 @@ void ConfigVehicleTypeWidget::updateCustomThrottle2CurveValue(QList<double> list
|
||||
/**
|
||||
Refreshes the current value of the SystemSettings which holds the aircraft type
|
||||
*/
|
||||
void ConfigVehicleTypeWidget::refreshWidgetsValues()
|
||||
void ConfigVehicleTypeWidget::refreshWidgetsValues(UAVObject *)
|
||||
{
|
||||
if(!allObjectsUpdated())
|
||||
return;
|
||||
|
@ -76,7 +76,7 @@ private:
|
||||
UAVObject::Metadata accInitialData;
|
||||
|
||||
private slots:
|
||||
virtual void refreshWidgetsValues();
|
||||
virtual void refreshWidgetsValues(UAVObject * obj = NULL);
|
||||
void refreshFixedWingWidgetsValues(QString frameType);
|
||||
void refreshMultiRotorWidgetsValues(QString frameType);
|
||||
void refreshGroundVehicleWidgetsValues(QString frameType);
|
||||
|
Loading…
Reference in New Issue
Block a user