Revert "Port deprecated method"
This requires a newer KF5 version than the current minimum.
This reverts commit e933ae5450
.
This commit is contained in:
parent
e933ae5450
commit
9afa6b6d91
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue