summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-02-23 10:05:09 (UTC)
committer harlekin <harlekin>2002-02-23 10:05:09 (UTC)
commitcb8381a2969b3a51697ec2034a919fffa9a9c022 (patch) (side-by-side diff)
tree5e6728d9e757c32884951bb3c2f9254f7ca057b7
parent30ff9056e2632ce4c3cd8b3d0fbf94dcd6b5dafb (diff)
downloadopie-cb8381a2969b3a51697ec2034a919fffa9a9c022.zip
opie-cb8381a2969b3a51697ec2034a919fffa9a9c022.tar.gz
opie-cb8381a2969b3a51697ec2034a919fffa9a9c022.tar.bz2
change to Documents tab, it now shows only existing files
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/launcherview.cpp9
1 files changed, 9 insertions, 0 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
@@ -562,33 +562,42 @@ void LauncherView::itemPressed( int btn, QIconViewItem *item )
if ( btn == RightButton )
emit rightPressed( appLnk );
/*
else if ( btn == LeftButton )
emit clicked( appLnk );
*/
item->setSelected(FALSE);
}
}
void LauncherView::internalPopulate( AppLnkSet *folder, const QString& typefilter )
{
QListIterator<AppLnk> it( folder->children() );
icons->setTypeFilter(typefilter,FALSE);
while ( it.current() ) {
+ // 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;
}
icons->sort();
}
bool LauncherView::removeLink(const QString& linkfile)
{
return icons->removeLink(linkfile);
}
void LauncherView::sort()
{
icons->sort();
}