forked from qt-creator/qt-creator
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>
This commit is contained in:
committed by
Orgad Shaneh
parent
edb880429e
commit
d243999be0
@@ -386,7 +386,7 @@ bool Project::fromMap(const QVariantMap &map)
|
|||||||
const QString key(QString::fromLatin1(TARGET_KEY_PREFIX) + QString::number(i));
|
const QString key(QString::fromLatin1(TARGET_KEY_PREFIX) + QString::number(i));
|
||||||
if (!map.contains(key)) {
|
if (!map.contains(key)) {
|
||||||
qWarning() << key << "was not found in data.";
|
qWarning() << key << "was not found in data.";
|
||||||
return false;
|
continue;
|
||||||
}
|
}
|
||||||
QVariantMap targetMap = map.value(key).toMap();
|
QVariantMap targetMap = map.value(key).toMap();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user