forked from qt-creator/qt-creator
Utils: Introduce a FilePath::searchInPath() convenience function
Diverts to searchInDirectory(). Use it in some places. Change-Id: I9e5642f0ae0ed4dd9fb9f34bcaa11a25bd26c690 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -223,9 +223,7 @@ FilePath PathChooserPrivate::expandedPath(const QString &input) const
|
||||
switch (m_acceptingKind) {
|
||||
case PathChooser::Command:
|
||||
case PathChooser::ExistingCommand: {
|
||||
FilePaths searchPaths = env.path();
|
||||
searchPaths.append(m_baseDirectory);
|
||||
const FilePath expanded = path.searchInDirectories(searchPaths);
|
||||
const FilePath expanded = path.searchInPath({m_baseDirectory});
|
||||
return expanded.isEmpty() ? path : expanded;
|
||||
}
|
||||
case PathChooser::Any:
|
||||
|
||||
Reference in New Issue
Block a user