From 4dd174f77b8437cbd30c504b43bb1970d25be0a4 Mon Sep 17 00:00:00 2001 From: Fredrik Arvidsson Date: Thu, 3 Mar 2016 16:26:54 +0100 Subject: [PATCH] LP-249 Fixed bug. --- ground/gcs/src/plugins/config/configinputwidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ground/gcs/src/plugins/config/configinputwidget.cpp b/ground/gcs/src/plugins/config/configinputwidget.cpp index eccef5caf..dffd051c7 100644 --- a/ground/gcs/src/plugins/config/configinputwidget.cpp +++ b/ground/gcs/src/plugins/config/configinputwidget.cpp @@ -197,8 +197,9 @@ ConfigInputWidget::ConfigInputWidget(QWidget *parent) : ui->stackedWidget->setCurrentIndex(0); QList widgets = QList() << ui->fmsModePos1 << ui->fmsModePos2 << ui->fmsModePos3 << ui->fmsModePos4 << ui->fmsModePos5 << ui->fmsModePos6; + index = 0; foreach(QWidget* widget, widgets) { - addWidgetBinding("FlightModeSettings", "FlightModePosition", widget, 0, 1, true); + addWidgetBinding("FlightModeSettings", "FlightModePosition", widget, index++, 1, true); } addWidgetBinding("FlightModeSettings", "Stabilization1Settings", ui->fmsSsPos1Roll, "Roll", 1, true);