summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/project.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2015-08-19 15:59:35 +0300
committerOrgad Shaneh <orgads@gmail.com>2015-08-25 10:26:07 +0000
commitd243999be0562f1268743bd431399b8c00ac2df4 (patch)
tree6da01f068509e4ea953beb210307d6f58d0c4973 /src/plugins/projectexplorer/project.cpp
parentedb880429e70127387359d831c31263de363d39e (diff)
downloadqt-creator-d243999be0562f1268743bd431399b8c00ac2df4.tar.gz
ProjectExplorer: Do not reject user file on target absence
Use-case: pro.user has 5 targets, while pro.shared has 6. It is better to have only 5 targets than not opening the project at all. Change-Id: Ic169a2180aafd0b1ed60a7f6d8903b47e7f1c34e Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/plugins/projectexplorer/project.cpp')
-rw-r--r--src/plugins/projectexplorer/project.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/project.cpp b/src/plugins/projectexplorer/project.cpp
index 6d57ccd9bf..1f2ee6ecbd 100644
--- a/src/plugins/projectexplorer/project.cpp
+++ b/src/plugins/projectexplorer/project.cpp
@@ -386,7 +386,7 @@ bool Project::fromMap(const QVariantMap &map)
const QString key(QString::fromLatin1(TARGET_KEY_PREFIX) + QString::number(i));
if (!map.contains(key)) {
qWarning() << key << "was not found in data.";
- return false;
+ continue;
}
QVariantMap targetMap = map.value(key).toMap();