logic: Fixed detected global search paths keep original order

The global header search paths were sorted alphabetically after detection due to checking for uniqueness. This caused
problems with #include_next directives in certain std header files that relied on the correct header search path order.

bug id = 101
This commit is contained in:
Eberhard Graether
2016-06-24 13:35:16 +02:00
parent 44cee3d130
commit 140d4a406a
2 changed files with 27 additions and 6 deletions
@@ -191,12 +191,7 @@ void QtProjectWizzardContentPaths::detectionClicked()
}
std::vector<FilePath> oldPaths = m_list->getList();
std::set<FilePath> uniquePaths;
uniquePaths.insert(oldPaths.begin(), oldPaths.end());
uniquePaths.insert(paths.begin(), paths.end());
m_list->setList(utility::toVector(uniquePaths));
m_list->setList(utility::unique(utility::concat(oldPaths, paths)));
}