Commit e82918c0 authored by Marcel Krems's avatar Marcel Krems Committed by Daniel Teske

Prevent endless loop if a project with dependencies couldn't be loaded.

Task-number: QTCREATORBUG-8085

Change-Id: I6e09c871cba02360eb93c11b5650683eba652ed0
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 0753d5e0
......@@ -719,14 +719,14 @@ void SessionManager::restoreDependencies(const Utils::PersistentSettingsReader &
QMap<QString, QVariant>::const_iterator i = depMap.constBegin();
while (i != depMap.constEnd()) {
const QString &key = i.key();
if (m_failedProjects.contains(key))
continue;
QStringList values;
foreach (const QString &value, i.value().toStringList()) {
if (!m_failedProjects.contains(value))
values << value;
if (!m_failedProjects.contains(key)) {
QStringList values;
foreach (const QString &value, i.value().toStringList()) {
if (!m_failedProjects.contains(value))
values << value;
}
m_depMap.insert(key, values);
}
m_depMap.insert(key, values);
++i;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment