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:
@@ -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)));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user