Fix desktop file display name

This commit is contained in:
kateleet 2021-12-15 03:52:44 +08:00
parent 94ecc56617
commit 7551ff92b9

View file

@ -248,6 +248,8 @@ QVariant FolderModel::data(const QModelIndex &index, int role) const
case DisplayNameRole: {
if (item.isDesktopFile()) {
KDesktopFile dfile(item.localPath());
if (!dfile.readName().isEmpty())
return dfile.readName();
}