forked from qt-creator/qt-creator
FileUtils: Adds toFilePathList function
Change-Id: Ie3137751135fdb6c3161cc886f307323fcce6b72 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
#include <texteditor/texteditor.h>
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/fileutils.h>
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/stylehelper.h>
|
||||
#include <utils/qtcassert.h>
|
||||
@@ -1042,8 +1043,7 @@ bool SessionManager::loadSession(const QString &session, bool initial)
|
||||
return true;
|
||||
}
|
||||
|
||||
fileList = Utils::transform(reader.restoreValue("ProjectList").toStringList(),
|
||||
&FilePath::fromString);
|
||||
fileList = FileUtils::toFilePathList(reader.restoreValue("ProjectList").toStringList());
|
||||
} else if (loadImplicitDefault) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user