diff --git a/src/plugins/autotest/testnavigationwidget.cpp b/src/plugins/autotest/testnavigationwidget.cpp index d64fc81fed7..f3195c873b6 100644 --- a/src/plugins/autotest/testnavigationwidget.cpp +++ b/src/plugins/autotest/testnavigationwidget.cpp @@ -109,7 +109,7 @@ TestNavigationWidget::TestNavigationWidget(QWidget *parent) : }); ProjectExplorer::SessionManager *sm = ProjectExplorer::SessionManager::instance(); connect(sm, &ProjectExplorer::SessionManager::startupProjectChanged, - [this](ProjectExplorer::Project * /*project*/) { + this, [this](ProjectExplorer::Project * /*project*/) { m_expandedStateCache.clear(); m_itemUseCache.clear(); });