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:
hjk
2021-08-17 14:49:19 +02:00
parent 59c0e5480a
commit 57a90b019f
6 changed files with 11 additions and 8 deletions

View File

@@ -70,7 +70,7 @@ static bool runPatchHelper(const QByteArray &input, const FilePath &workingDirec
return false;
}
if (!patch.exists() && !patch.searchInDirectories(Environment::systemEnvironment().path()).exists()) {
if (!patch.exists() && !patch.searchInPath().exists()) {
MessageManager::writeDisrupting(
QApplication::translate("Core::PatchTool",
"The patch-command configured in the general \"Environment\" "