From 1b7e4b8e64ed4b53034ec680c5e75cc102f151d3 Mon Sep 17 00:00:00 2001 From: con <qtc-committer@nokia.com> Date: Fri, 8 May 2009 09:33:52 +0200 Subject: [PATCH] Fixes "save modified files before build" in case of multiple projects. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Initial-patch-by: Christian Hönig --- src/plugins/projectexplorer/projectexplorer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index eae61dd93b1..a4eba076f30 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -1297,6 +1297,9 @@ bool ProjectExplorerPlugin::saveModifiedFiles(const QList<Project *> & projects) foreach (Project *pro, projects) allFiles << allFilesWithDependencies(pro); + // allFiles must be sorted for the algorithm to work + qSort(allFiles); + foreach (Core::IFile * fi, modifiedFi) modified.insert(fi->fileName(), fi); -- GitLab