Skip to content

Commit

Permalink
Better lambda.
Browse files Browse the repository at this point in the history
  • Loading branch information
Holt59 committed May 24, 2024
1 parent e9cad6c commit dc5129d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tutorialmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void TutorialManager::registerControl(const QString& windowName,
std::map<QString, QString>::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);
Expand Down

0 comments on commit dc5129d

Please sign in to comment.