diff --git a/src/lib/util/klistopenfilesjob_unix.cpp b/src/lib/util/klistopenfilesjob_unix.cpp --- a/src/lib/util/klistopenfilesjob_unix.cpp +++ b/src/lib/util/klistopenfilesjob_unix.cpp @@ -66,9 +66,8 @@ return; } const QString out(QString::fromLocal8Bit(lsofProcess.readAll())); - QStringList pidList = out.split(QRegularExpression(QStringLiteral("\\s+")), QString::SkipEmptyParts); - pidList.removeDuplicates(); - for (const auto& pidStr : qAsConst(pidList)) { + const QVector pidList = out.splitRef(QRegularExpression(QStringLiteral("\\s+")), QString::SkipEmptyParts); + for (const auto &pidStr : pidList) { qint64 pid = pidStr.toLongLong(); if (!pid) { continue;