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

Port away from deprecated KIO::suggestName

Summary: KFileUtils::suggestName() is a drop-in replacement, just moved to another library

Test Plan: builds

Reviewers: #plasma, apol

Reviewed By: apol

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D23996
parent 1e636858
......@@ -38,6 +38,7 @@
#include <KDesktopFile>
#include <KFileItemActions>
#include <KFileItemListProperties>
#include <KFileUtils>
#include <KJobWidgets>
#include <KLocalizedString>
#include <KProtocolManager>
......@@ -121,9 +122,9 @@ void IconApplet::populate()
}
QString backingDesktopFile = plasmaIconsFolderPath + QLatin1Char('/');
// KIO::suggestName always appends a suffix, i.e. it expects that we already know the file already exists
// KFileUtils::suggestName always appends a suffix, i.e. it expects that we already know the file already exists
if (QFileInfo::exists(backingDesktopFile + desiredDesktopFileName)) {
desiredDesktopFileName = KIO::suggestName(QUrl::fromLocalFile(plasmaIconsFolderPath), desiredDesktopFileName);
desiredDesktopFileName = KFileUtils::suggestName(QUrl::fromLocalFile(plasmaIconsFolderPath), desiredDesktopFileName);
}
backingDesktopFile.append(desiredDesktopFileName);
......
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