diff --git a/src/tutorialmanager.cpp b/src/tutorialmanager.cpp index d9ac5974..235a78ad 100644 --- a/src/tutorialmanager.cpp +++ b/src/tutorialmanager.cpp @@ -93,7 +93,7 @@ void TutorialManager::registerControl(const QString& windowName, std::map::iterator iter = m_PendingTutorials.find(windowName); if (iter != m_PendingTutorials.end()) { // there is a pending tutorial for this window, display it - QTimer::singleShot(0, [=] { + QTimer::singleShot(0, [control, tutorial = m_TutorialPath + iter->second] { control->startTutorial(m_TutorialPath + iter->second); }); m_PendingTutorials.erase(iter);