Restore empty filename check

Otherwise we could end up matching with a weird ".../.desktop" entry.

BUG: 427979


(cherry picked from commit a92ce693ec)
icc-effect-5.20.5
Aleix Pol 2020-11-06 01:45:27 +00:00 committed by Aleix Pol Gonzalez
parent 191bef73ac
commit 0b5cbe4016
1 changed files with 4 additions and 0 deletions

View File

@ -2616,6 +2616,10 @@ void AbstractClient::setDesktopFileName(QByteArray name)
QString AbstractClient::iconFromDesktopFile() const
{
if (m_desktopFileName.isEmpty()) {
return {};
}
const QString desktopFileName = QString::fromUtf8(m_desktopFileName);
QString desktopFilePath;