From adae92b6759a9443272c3c55c6db4dc9999b19e3 Mon Sep 17 00:00:00 2001 From: Fredrik Arvidsson Date: Wed, 28 Oct 2015 22:50:46 +0100 Subject: [PATCH] LP-171 Added code to disable signal from being triggered while stabilisation bank is changed. --- ground/gcs/src/plugins/config/configstabilizationwidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ground/gcs/src/plugins/config/configstabilizationwidget.cpp b/ground/gcs/src/plugins/config/configstabilizationwidget.cpp index 17a1f728b..ac8455a6e 100644 --- a/ground/gcs/src/plugins/config/configstabilizationwidget.cpp +++ b/ground/gcs/src/plugins/config/configstabilizationwidget.cpp @@ -639,6 +639,7 @@ void ConfigStabilizationWidget::onBoardConnected() void ConfigStabilizationWidget::stabBankChanged(int index) { bool dirty = isDirty(); + disconnect(this, SIGNAL(widgetContentsChanged(QWidget *)), this, SLOT(processLinkedWidgets(QWidget *))); updateObjectFromThrottleCurve(); foreach(QTabBar * tabBar, m_stabTabBars) { @@ -655,6 +656,8 @@ void ConfigStabilizationWidget::stabBankChanged(int index) m_currentStabSettingsBank = index; updateThrottleCurveFromObject(); + + connect(this, SIGNAL(widgetContentsChanged(QWidget *)), this, SLOT(processLinkedWidgets(QWidget *))); setDirty(dirty); }