Correctly truncate long applciatons names
HAM integration
This commit is contained in:
parent
fd8c378cd0
commit
217c75e512
10 changed files with 101 additions and 23 deletions
|
|
@ -25,6 +25,7 @@ bool DesktopFile::open(const QString& fileName)
|
|||
name = desktopFile.value("Name").toString();
|
||||
command = desktopFile.value("Exec").toString();
|
||||
execName = QFileInfo(command).fileName().split(' ').at(0);
|
||||
execName.truncate(15);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
|
@ -33,7 +34,6 @@ bool DesktopFile::open(const QString& fileName)
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
QList<DesktopFile> DesktopFile::getDesktopFiles(const QList<QByteArray>& desktopFileDirs)
|
||||
{
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue