summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/launcherview.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/core/launcher/launcherview.cpp b/core/launcher/launcherview.cpp
index e8741a2..7b20fdc 100644
--- a/core/launcher/launcherview.cpp
+++ b/core/launcher/launcherview.cpp
@@ -576,5 +576,14 @@ void LauncherView::internalPopulate( AppLnkSet *folder, const QString& typefilte
while ( it.current() ) {
- icons->addItem(*it,FALSE);
+ // show only the icons for existing files
+ if (!QFile(it.current()->file()).exists() )
+ {
+ //maybe insert some .desktop file deletion code later
+ //maybe dir specific
+ }
+ else
+ {
+ icons->addItem(*it,FALSE);
+ }
++it;
}