From cb8381a2969b3a51697ec2034a919fffa9a9c022 Mon Sep 17 00:00:00 2001 From: harlekin Date: Sat, 23 Feb 2002 10:05:09 +0000 Subject: change to Documents tab, it now shows only existing files --- (limited to 'core/launcher/launcherview.cpp') 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 @@ -575,7 +575,16 @@ void LauncherView::internalPopulate( AppLnkSet *folder, const QString& typefilte icons->setTypeFilter(typefilter,FALSE); 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; } -- cgit v0.9.0.2