Fix desktop file display name
This commit is contained in:
parent
94ecc56617
commit
7551ff92b9
1 changed files with 3 additions and 1 deletions
|
@ -248,6 +248,8 @@ QVariant FolderModel::data(const QModelIndex &index, int role) const
|
||||||
case DisplayNameRole: {
|
case DisplayNameRole: {
|
||||||
if (item.isDesktopFile()) {
|
if (item.isDesktopFile()) {
|
||||||
KDesktopFile dfile(item.localPath());
|
KDesktopFile dfile(item.localPath());
|
||||||
|
|
||||||
|
if (!dfile.readName().isEmpty())
|
||||||
return dfile.readName();
|
return dfile.readName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue