1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-31 16:52:10 +01:00

Merged in m_thread/librepilot/thread/LP-171_Link_Sliders_Bug (pull request #108)

LP-171 Added code to disable signal from being triggered while stabilisation bank is changed.
This commit is contained in:
Fredrik Arvidsson 2015-11-03 09:51:47 +01:00
commit 68e6a4ded9

View File

@ -639,6 +639,7 @@ void ConfigStabilizationWidget::onBoardConnected()
void ConfigStabilizationWidget::stabBankChanged(int index) void ConfigStabilizationWidget::stabBankChanged(int index)
{ {
bool dirty = isDirty(); bool dirty = isDirty();
disconnect(this, SIGNAL(widgetContentsChanged(QWidget *)), this, SLOT(processLinkedWidgets(QWidget *)));
updateObjectFromThrottleCurve(); updateObjectFromThrottleCurve();
foreach(QTabBar * tabBar, m_stabTabBars) { foreach(QTabBar * tabBar, m_stabTabBars) {
@ -655,6 +656,8 @@ void ConfigStabilizationWidget::stabBankChanged(int index)
m_currentStabSettingsBank = index; m_currentStabSettingsBank = index;
updateThrottleCurveFromObject(); updateThrottleCurveFromObject();
connect(this, SIGNAL(widgetContentsChanged(QWidget *)), this, SLOT(processLinkedWidgets(QWidget *)));
setDirty(dirty); setDirty(dirty);
} }