forked from qt-creator/qt-creator
ProjectExplorer: Use FilePath in ProjectExplorer::openProject{,s}()
Change-Id: Ibfb7ab5ef7226b85452bd37b840408708935453b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -50,6 +50,7 @@
|
||||
#include <QtTest>
|
||||
|
||||
using namespace ProjectExplorer;
|
||||
using namespace Utils;
|
||||
|
||||
static bool closeEditorsWithoutGarbageCollectorInvocation(const QList<Core::IEditor *> &editors)
|
||||
{
|
||||
@@ -282,7 +283,8 @@ ProjectOpenerAndCloser::~ProjectOpenerAndCloser()
|
||||
ProjectInfo ProjectOpenerAndCloser::open(const QString &projectFile, bool configureAsExampleProject,
|
||||
Kit *kit)
|
||||
{
|
||||
ProjectExplorerPlugin::OpenProjectResult result = ProjectExplorerPlugin::openProject(projectFile);
|
||||
ProjectExplorerPlugin::OpenProjectResult result =
|
||||
ProjectExplorerPlugin::openProject(FilePath::fromString(projectFile));
|
||||
if (!result) {
|
||||
qWarning() << result.errorMessage() << result.alreadyOpen();
|
||||
return ProjectInfo();
|
||||
|
||||
Reference in New Issue
Block a user