diff --git a/src/plugins/projectexplorer/sessionmodel.cpp b/src/plugins/projectexplorer/sessionmodel.cpp index eadacf4d718..23c3095a7cd 100644 --- a/src/plugins/projectexplorer/sessionmodel.cpp +++ b/src/plugins/projectexplorer/sessionmodel.cpp @@ -124,7 +124,9 @@ void SessionModel::resetSessions() void SessionModel::newSession() { - runNewSessionDialog("", &SessionManager::createSession); + runNewSessionDialog("", [](const QString &newName) { + SessionManager::createSession(newName); + }); } void SessionModel::cloneSession(const QString &session)