forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user