aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/vcprojectmanager/vcprojectmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/vcprojectmanager/vcprojectmanager.cpp')
-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;
}