1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-19 04:52:12 +01:00

LP-171 Added code to disable signal from being triggered while stabilisation bank is changed.

This commit is contained in:
Fredrik Arvidsson 2015-10-28 22:50:46 +01:00
parent 3b2795e2b4
commit adae92b675

View File

@ -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);
}