From 02f8572f8aa79919ba8ba69cb616692bca34e01e Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Mon, 5 Sep 2016 10:07:07 +0200 Subject: [PATCH] SessionModel: Fix compilation issue with no-so-recent Clang Which seems to have issue to construct a std::function from a function pointer to a function that does not return void. Change-Id: I10d79f328acb922dac298ec598eecff1d3b9f522 Reviewed-by: Christian Stenger --- src/plugins/projectexplorer/sessionmodel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)