From 878320fe9063930bebf4f018954871d713f512cf Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 3 Apr 2019 13:28:49 +0300 Subject: [PATCH] Fixing error: 'this' was not captured for this lambda function. --HG-- branch : develop --- src/app/valentina/mainwindowsnogui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/valentina/mainwindowsnogui.cpp b/src/app/valentina/mainwindowsnogui.cpp index e48779d12..5cff35e46 100644 --- a/src/app/valentina/mainwindowsnogui.cpp +++ b/src/app/valentina/mainwindowsnogui.cpp @@ -224,7 +224,7 @@ bool MainWindowsNoGUI::GenerateLayout(VLayoutGenerator& lGenerator) m_taskbarProgress->setValue(0); m_taskbarProgress->setMaximum(lGenerator.GetNestingTime()); progressTimer = new QTimer(this); - connect(progressTimer, &QTimer::timeout, this, [timer, &lGenerator]() + connect(progressTimer, &QTimer::timeout, this, [this, timer, &lGenerator]() { m_taskbarProgress->setValue(static_cast(timer.elapsed()/60000)); });