Fixing error: 'this' was not captured for this lambda function.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-04-03 13:28:49 +03:00
parent 2f420854c2
commit 878320fe90

View File

@ -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<int>(timer.elapsed()/60000));
});