diff options
author | Radovan Zivkovic <[email protected]> | 2014-03-30 21:02:50 +0200 |
---|---|---|
committer | Radovan Zivkovic <[email protected]> | 2014-07-21 18:21:41 +0200 |
commit | fa7d2457c194eec059cbd3033a7213fd2b8245b7 (patch) | |
tree | 70456ff8ede76e792e82a0a5231d370c033ee7e1 | |
parent | c3827299ac7892cdbfb718475ec252b4d61a05ae (diff) |
Show error message when project cannot be opened.wip/vcproj
Change-Id: I72c701c0a6d4a40f17998d46e21e9dc117cf064e
Reviewed-by: Tobias Hunger <[email protected]>
Reviewed-by: Leena Miettinen <[email protected]>
-rw-r--r-- | src/plugins/vcprojectmanager/vcprojectmanager.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/plugins/vcprojectmanager/vcprojectmanager.cpp b/src/plugins/vcprojectmanager/vcprojectmanager.cpp index e115c6ab408..6fe0353adfd 100644 --- a/src/plugins/vcprojectmanager/vcprojectmanager.cpp +++ b/src/plugins/vcprojectmanager/vcprojectmanager.cpp @@ -68,10 +68,15 @@ ProjectExplorer::Project *VcManager::openProject(const QString &fileName, QStrin // versions supported are 2003, 2005 and 2008 VcDocConstants::DocumentVersion docVersion = Utils::getProjectVersion(canonicalFilePath); - if (docVersion != VcDocConstants::DV_UNRECOGNIZED) + if (docVersion != VcDocConstants::DV_UNRECOGNIZED) { + if (errorString) + errorString->clear(); return new VcProject(this, canonicalFilePath, docVersion); + } + + if (errorString) + *errorString = tr("Could not open project %1").arg(fileName); - qDebug() << "VcManager::openProject: Unrecognized file version"; return 0; } |