Commit 9afa6b6d authored by Nicolas Fella's avatar Nicolas Fella

Revert "Port deprecated method"

This requires a newer KF5 version than the current minimum.

This reverts commit e933ae54.
parent e933ae54
......@@ -34,7 +34,6 @@
#include <KPluginFactory>
#include <KIO/MkpathJob>
#include <KMimeTypeTrader>
#include <KFileUtils>
#include "core/filetransferjob.h"
#include "core/daemon.h"
......@@ -73,7 +72,7 @@ QUrl SharePlugin::getFileDestination(const QString filename) const
QUrl destination(dir);
destination.setPath(dir.path() + QStringLiteral("/") + filename, QUrl::DecodedMode);
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;
}
......
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