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:
parent
3b2795e2b4
commit
adae92b675
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user