aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadovan Zivkovic <pivonroll@gmail.com>2014-03-30 21:02:50 +0200
committerRadovan Zivkovic <pivonroll@gmail.com>2014-07-21 18:21:41 +0200
commitfa7d2457c194eec059cbd3033a7213fd2b8245b7 (patch)
tree70456ff8ede76e792e82a0a5231d370c033ee7e1
parentc3827299ac7892cdbfb718475ec252b4d61a05ae (diff)
Show error message when project cannot be opened.wip/vcproj
Change-Id: I72c701c0a6d4a40f17998d46e21e9dc117cf064e Reviewed-by: Tobias Hunger <tobias.hunger@digia.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
-rw-r--r--src/plugins/vcprojectmanager/vcprojectmanager.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/plugins/vcprojectmanager/vcprojectmanager.cpp b/src/plugins/vcprojectmanager/vcprojectmanager.cpp
index e115c6ab40..6fe0353adf 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;
}