Fix desktop file display name

pull/36/head
kateleet 4 years ago
parent 94ecc56617
commit 7551ff92b9

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

Loading…
Cancel
Save