|
|
|
@ -46,7 +46,7 @@ static UnrarFlavour *detectUnrar(const QString &unrarPath, const QString &versio |
|
|
|
bool ok = proc.waitForFinished(-1); |
|
|
|
bool ok = proc.waitForFinished(-1); |
|
|
|
Q_UNUSED(ok) |
|
|
|
Q_UNUSED(ok) |
|
|
|
const QRegularExpression regex(QStringLiteral("[\r\n]")); |
|
|
|
const QRegularExpression regex(QStringLiteral("[\r\n]")); |
|
|
|
const QStringList lines = QString::fromLocal8Bit(proc.readAllStandardOutput()).split(regex, QString::SkipEmptyParts); |
|
|
|
const QStringList lines = QString::fromLocal8Bit(proc.readAllStandardOutput()).split(regex, Qt::SkipEmptyParts); |
|
|
|
if (!lines.isEmpty()) { |
|
|
|
if (!lines.isEmpty()) { |
|
|
|
if (lines.first().startsWith(QLatin1String("UNRAR "))) { |
|
|
|
if (lines.first().startsWith(QLatin1String("UNRAR "))) { |
|
|
|
kind = new NonFreeUnrarFlavour(); |
|
|
|
kind = new NonFreeUnrarFlavour(); |
|
|
|
@ -151,7 +151,7 @@ QStringList Unrar::list() |
|
|
|
startSyncProcess(helper->kind->processListArgs(mFileName)); |
|
|
|
startSyncProcess(helper->kind->processListArgs(mFileName)); |
|
|
|
|
|
|
|
|
|
|
|
const QRegularExpression regex(QStringLiteral("[\r\n]")); |
|
|
|
const QRegularExpression regex(QStringLiteral("[\r\n]")); |
|
|
|
QStringList listFiles = helper->kind->processListing(QString::fromLocal8Bit(mStdOutData).split(regex, QString::SkipEmptyParts)); |
|
|
|
QStringList listFiles = helper->kind->processListing(QString::fromLocal8Bit(mStdOutData).split(regex, Qt::SkipEmptyParts)); |
|
|
|
|
|
|
|
|
|
|
|
QString subDir; |
|
|
|
QString subDir; |
|
|
|
|
|
|
|
|
|
|
|
|