From 1863cded1399cfa57acc9f478f6689c6c2b44748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Tue, 23 Oct 2018 15:52:06 -0300 Subject: [PATCH] ParameterManager: Use 3rd parameter in connect MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/FactSystem/ParameterManager.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FactSystem/ParameterManager.cc b/src/FactSystem/ParameterManager.cc index 0ae8221c6..bd548cfb9 100644 --- a/src/FactSystem/ParameterManager.cc +++ b/src/FactSystem/ParameterManager.cc @@ -868,13 +868,13 @@ void ParameterManager::_tryCacheHashLoad(int vehicleId, int componentId, QVarian ani->setEndValue(1.0); ani->setDuration(750); - connect(ani, &QVariantAnimation::valueChanged, [this](const QVariant &value) { + connect(ani, &QVariantAnimation::valueChanged, this, [this](const QVariant &value) { _setLoadProgress(value.toDouble()); }); // Hide 500ms after animation finishes - connect(ani, &QVariantAnimation::finished, [this](){ - QTimer::singleShot(500, [this]() { + connect(ani, &QVariantAnimation::finished, this, [this] { + QTimer::singleShot(500, [this] { _setLoadProgress(0); }); }); -- 2.22.0