Warn when failing to restore .user-file settings

This commit is contained in:
Tobias Hunger
2010-02-18 18:37:11 +01:00
parent 5937f2cfdc
commit 8fe0cb2be9
3 changed files with 29 additions and 9 deletions

View File

@@ -277,8 +277,10 @@ bool Qt4Project::fromMap(const QVariantMap &map)
// This can happen esp. when updating from a old version of Qt Creator
QList<Target *>ts(targets());
foreach (Target *t, ts) {
if (t->buildConfigurations().isEmpty())
if (t->buildConfigurations().isEmpty()) {
qWarning() << "Removing" << t->id() << "since it has no buildconfigurations!";
removeTarget(t);
}
}
// Add buildconfigurations so we can parse the pro-files.