summaryrefslogtreecommitdiff
path: root/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2015-02-02 00:37:38 +0200
committerOrgad Shaneh <orgads@gmail.com>2015-02-13 13:14:03 +0000
commit88e7f935f4adbccaf0ffe7e03a3adec8143cf614 (patch)
treef1c309b5b16f6f240bf7ee175fef3a6d49f05d11 /src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp
parent033a628cdcd47fe90bf78b7a31e71991371ea86b (diff)
downloadqt-creator-88e7f935f4adbccaf0ffe7e03a3adec8143cf614.tar.gz
ProjectExplorer: Use FileName for Node::path
Change-Id: I4a41cfb629be8bb06b4b0616cd4475525e617a51 Reviewed-by: BogDan Vatra <bogdan@kde.org> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp')
-rw-r--r--src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp b/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp
index 20051b8fc1..2f5c271499 100644
--- a/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp
@@ -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