forked from qt-creator/qt-creator
Utils: Fix find logic
We are more interested in the files than the error message. Task-number: QTCREATORBUG-28242 Change-Id: Ifc5724764797d2488c7fa231ff5b1cf2292418ed Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -639,7 +639,7 @@ static bool iterateWithFind(const FilePath &filePath,
|
||||
|
||||
const QStringList entries = out.split("\n", Qt::SkipEmptyParts);
|
||||
for (const QString &entry : entries) {
|
||||
if (entry.startsWith("find: ")) {
|
||||
if (!entry.startsWith("find: ")) {
|
||||
const FilePath fp = FilePath::fromString(entry);
|
||||
if (!callBack(fp.onDevice(filePath)))
|
||||
break;
|
||||
|
Reference in New Issue
Block a user