Commit 553e6267 authored by Daniel Teske's avatar Daniel Teske
Browse files

ProjectExplorer: Fix build dependencies

Task-number: QTCREATORBUG-9601

Change-Id: Iece4fd11a42ac1562f9f6a2186c278ad49ce8d7d
Reviewed-by: default avatarEike Ziller <>
parent f71bb6d3
......@@ -389,13 +389,21 @@ const QList<Project *> &SessionManager::projects() const
QStringList SessionManager::dependencies(const QString &proName) const
QStringList result;
foreach (const QString &dep, m_depMap.value(proName))
result += dependencies(dep);
result << proName;
dependencies(proName, result);
return result;
void SessionManager::dependencies(const QString &proName, QStringList &result) const
QStringList depends = m_depMap.value(proName);
foreach (const QString &dep, depends)
dependencies(dep, result);
if (!result.contains(proName))
QStringList SessionManager::dependenciesOrder() const
QList<QPair<QString, QStringList> > unordered;
......@@ -160,6 +160,7 @@ private:
bool recursiveDependencyCheck(const QString &newDep, const QString &checkDep) const;
QStringList dependencies(const QString &proName) const;
QStringList dependenciesOrder() const;
void dependencies(const QString &proName, QStringList &result) const;
SessionNode *m_sessionNode;
QString m_sessionName;
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