diff options
author | Ken Moore <ken@ixsystems.com> | 2016-10-21 14:29:15 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2016-10-21 14:29:15 -0400 |
commit | 262e9ff5395e41abc567644530278123f357eee8 (patch) | |
tree | 04a330f436d9ba6161f38ae11cd06d86bd743d92 /src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp | |
parent | If a .desktop file is given to launch, be more specific with the error when t... (diff) | |
download | lumina-262e9ff5395e41abc567644530278123f357eee8.tar.gz lumina-262e9ff5395e41abc567644530278123f357eee8.tar.bz2 lumina-262e9ff5395e41abc567644530278123f357eee8.zip |
For desktop icons, only check if there is a name to decide when to show it.
Let the launcher find any problems with it and alert the user at that time.
Diffstat (limited to 'src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp')
-rw-r--r-- | src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp b/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp index e9ef78cb..708355cd 100644 --- a/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp +++ b/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp @@ -40,7 +40,7 @@ void AppLauncherPlugin::loadButton(){ QString txt; if(path.endsWith(".desktop") && ok){ XDGDesktop file(path); - ok = file.isValid(); + ok = !file.name.isEmpty(); if(!ok){ button->setWhatsThis(""); button->setIcon( QIcon(LXDG::findIcon("quickopen-file","").pixmap(QSize(icosize,icosize)).scaledToHeight(icosize, Qt::SmoothTransformation) ) ); |