1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-27 16:54:15 +01:00

OP-60 : Automatically move needles back to the right position if the dial is reloaded (config changed for example).

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@878 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
edouard 2010-06-23 22:36:17 +00:00 committed by edouard
parent df2bed8dd0
commit ed895408cb

View File

@ -278,13 +278,11 @@ void AirspeedGadgetWidget::setDialFile(QString dfn, QString bg, QString fg, QStr
// of the needles, so we have to reset the needles too upon dial file loading, otherwise
// we would end up with an offset when we change a dial file and the needle value
// is not zero at that time.
needle1Target = 0;
needle2Target = 0;
needle3Target = 0;
needle1Value = 0;
needle2Value = 0;
needle3Value = 0;
if (!dialTimer.isActive())
dialTimer.start();
}
}
else