Revert "Port deprecated method"

This requires a newer KF5 version than the current minimum.

This reverts commit e933ae5450.
This commit is contained in:
Nicolas Fella 2019-12-06 23:14:19 +01:00
parent e933ae5450
commit 9afa6b6d91

View file

@ -34,7 +34,6 @@
#include <KPluginFactory> #include <KPluginFactory>
#include <KIO/MkpathJob> #include <KIO/MkpathJob>
#include <KMimeTypeTrader> #include <KMimeTypeTrader>
#include <KFileUtils>
#include "core/filetransferjob.h" #include "core/filetransferjob.h"
#include "core/daemon.h" #include "core/daemon.h"
@ -73,7 +72,7 @@ QUrl SharePlugin::getFileDestination(const QString filename) const
QUrl destination(dir); QUrl destination(dir);
destination.setPath(dir.path() + QStringLiteral("/") + filename, QUrl::DecodedMode); destination.setPath(dir.path() + QStringLiteral("/") + filename, QUrl::DecodedMode);
if (destination.isLocalFile() && QFile::exists(destination.toLocalFile())) { if (destination.isLocalFile() && QFile::exists(destination.toLocalFile())) {
destination.setPath(dir.path() + QStringLiteral("/") + KFileUtils::suggestName(dir, filename), QUrl::DecodedMode); destination.setPath(dir.path() + QStringLiteral("/") + KIO::suggestName(dir, filename), QUrl::DecodedMode);
} }
return destination; return destination;
} }