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:
@@ -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\" "
|
||||
|
||||
Reference in New Issue
Block a user