SessionModel: Fix compilation issue with no-so-recent Clang

Which seems to have issue to construct a std::function<void(T)> from a
function pointer to a function that does not return void.

Change-Id: I10d79f328acb922dac298ec598eecff1d3b9f522
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Eike Ziller
2016-09-05 10:07:07 +02:00
parent 11dea636a0
commit 02f8572f8a

View File

@@ -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)