Commit fee89efd authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

We depend agains 5.86.

parent 5217437b
Pipeline #110419 failed with stage
in 2 minutes and 43 seconds
......@@ -12,11 +12,7 @@
#include <QFileInfo>
#include <karchive_version.h>
#if KARCHIVE_VERSION >= QT_VERSION_CHECK(5, 85, 0)
#include <KCompressionDevice>
#else
#include <KFilterDev>
#endif
#include <KLocalizedString>
LibSingleFileInterface::LibSingleFileInterface(QObject *parent, const QVariantList & args)
......@@ -55,11 +51,7 @@ bool LibSingleFileInterface::extractFiles(const QVector<Kerfuffle::Archive::Entr
return false;
}
#if KARCHIVE_VERSION >= QT_VERSION_CHECK(5, 85, 0)
KCompressionDevice *device = new KCompressionDevice(filename(), KCompressionDevice::compressionTypeForMimeType(m_mimeType));
#else
KCompressionDevice *device = new KCompressionDevice(filename(), KFilterDev::compressionTypeForMimeType(m_mimeType));
#endif
if (!device) {
qCCritical(ARK) << "Could not create KCompressionDevice";
Q_EMIT error(xi18nc("@info", "Ark could not open <filename>%1</filename> for extraction.", filename()));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment