mirror of
https://gitlab.com/smart-pattern/valentina.git
synced 2024-07-03 09:38:11 +02:00
Fixing error: 'this' was not captured for this lambda function.
--HG-- branch : develop
This commit is contained in:
parent
2f420854c2
commit
878320fe90
|
@ -224,7 +224,7 @@ bool MainWindowsNoGUI::GenerateLayout(VLayoutGenerator& lGenerator)
|
||||||
m_taskbarProgress->setValue(0);
|
m_taskbarProgress->setValue(0);
|
||||||
m_taskbarProgress->setMaximum(lGenerator.GetNestingTime());
|
m_taskbarProgress->setMaximum(lGenerator.GetNestingTime());
|
||||||
progressTimer = new QTimer(this);
|
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));
|
m_taskbarProgress->setValue(static_cast<int>(timer.elapsed()/60000));
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue