forked from qt-creator/qt-creator
ProjectExplorer: Use FileName for Node::path
Change-Id: I4a41cfb629be8bb06b4b0616cd4475525e617a51 Reviewed-by: BogDan Vatra <bogdan@kde.org> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
033a628cdc
commit
88e7f935f4
@@ -112,14 +112,15 @@ void CMakeManager::runCMake(ProjectExplorer::Project *project)
|
||||
|
||||
ProjectExplorer::Project *CMakeManager::openProject(const QString &fileName, QString *errorString)
|
||||
{
|
||||
if (!QFileInfo(fileName).isFile()) {
|
||||
Utils::FileName file = Utils::FileName::fromString(fileName);
|
||||
if (!file.toFileInfo().isFile()) {
|
||||
if (errorString)
|
||||
*errorString = tr("Failed opening project \"%1\": Project is not a file")
|
||||
.arg(fileName);
|
||||
.arg(file.toUserOutput());
|
||||
return 0;
|
||||
}
|
||||
|
||||
return new CMakeProject(this, fileName);
|
||||
return new CMakeProject(this, file);
|
||||
}
|
||||
|
||||
QString CMakeManager::mimeType() const
|
||||
|
Reference in New Issue
Block a user