Commit e933ae54 authored by Laurent Montel's avatar Laurent Montel

Port deprecated method

parent b0134a58
......@@ -34,6 +34,7 @@
#include <KPluginFactory>
#include <KIO/MkpathJob>
#include <KMimeTypeTrader>
#include <KFileUtils>
#include "core/filetransferjob.h"
#include "core/daemon.h"
......@@ -72,7 +73,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("/") + KIO::suggestName(dir, filename), QUrl::DecodedMode);
destination.setPath(dir.path() + QStringLiteral("/") + KFileUtils::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