Commit d580a73c authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Port away from deprecated KIO::suggestName

Test Plan: builds

Reviewers: #ark, elvisangelaccio

Reviewed By: #ark, elvisangelaccio

Subscribers: kde-utils-devel

Tags: #ark

Differential Revision: https://phabricator.kde.org/D25706
parent 13ce7053
......@@ -8,7 +8,7 @@ set (KDE_APPLICATIONS_VERSION "${KDE_APPLICATIONS_VERSION_MAJOR}.${KDE_APPLICATI
project(ark VERSION ${KDE_APPLICATIONS_VERSION})
set(QT_MIN_VERSION 5.10.0)
set(KF5_MIN_VERSION 5.44.0)
set(KF5_MIN_VERSION 5.61.0)
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
......
......@@ -38,7 +38,7 @@
#include <QTimer>
#include <QUrl>
#include <KIO/RenameDialog>
#include <KFileUtils>
#include <KLocalizedString>
namespace Kerfuffle
......@@ -440,7 +440,7 @@ void BatchExtractJob::setupDestination()
}
if (d.exists(subfolderName)) {
subfolderName = KIO::suggestName(QUrl::fromUserInput(m_destination, QString(), QUrl::AssumeLocalFile), subfolderName);
subfolderName = KFileUtils::suggestName(QUrl::fromUserInput(m_destination, QString(), QUrl::AssumeLocalFile), subfolderName);
}
d.mkdir(subfolderName);
......
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