summaryrefslogtreecommitdiff
path: root/core
authorllornkcor <llornkcor>2005-08-14 01:56:52 (UTC)
committer llornkcor <llornkcor>2005-08-14 01:56:52 (UTC)
commit11644efb6f433c5def0341b8d086804ce457d5a5 (patch) (side-by-side diff)
tree5432a575837e77f3238aac8bdcc397586c45a21f /core
parent6ee18e3d11d5204ca6c8e885bc563ab34befdaec (diff)
downloadopie-11644efb6f433c5def0341b8d086804ce457d5a5.zip
opie-11644efb6f433c5def0341b8d086804ce457d5a5.tar.gz
opie-11644efb6f433c5def0341b8d086804ce457d5a5.tar.bz2
make assumption that Documents files will never be installed/written to /proc /dev /bin and similar places.. so we don't need to waste time scanning these.
Diffstat (limited to 'core') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/documentlist.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/launcher/documentlist.cpp b/core/launcher/documentlist.cpp
index fd385d6..35a5d56 100644
--- a/core/launcher/documentlist.cpp
+++ b/core/launcher/documentlist.cpp
@@ -120,7 +120,7 @@ DocumentList::DocumentList( ServerInterface *serverGui, bool /*scanDocs*/,
d->scanDocs = cfg.readBoolEntry( "Enable", true );
odebug << "DocumentList::DocumentList() : scanDocs = " << d->scanDocs << "" << oendl;
- QTimer::singleShot( 10, this, SLOT( startInitialScan() ) );
+ QTimer::singleShot( 0, this, SLOT( startInitialScan() ) );
}
void DocumentList::startInitialScan()
@@ -187,7 +187,7 @@ void DocumentList::resendWorker()
void DocumentList::rescan()
{
- //odebug << "rescan" << oendl;
+ owarn << "XXXXXXXXXXX rescan" << oendl;
pause();
d->initialize();
resume();
@@ -701,7 +701,9 @@ const QString DocumentListPrivate::nextFile()
QString bn = fi->fileName();
if ( bn[0] != '.' ) {
if ( fi->isDir() ) {
- if ( bn != "CVS" && bn != "Qtopia" && bn != "QtPalmtop" ) {
+ if ( bn != "CVS" && bn != "Qtopia" && bn != "QtPalmtop"
+ && bn != "proc" && bn != "dev" && bn != "bin" && bn != "usr"
+ && bn != "etc" && bn != "lib" && bn != "sbin" && bn != "tmp" && bn != "var") {
// go down a depth
QDir dir( fi->filePath() );
// odebug << "now going in to path: " << bn << "" << oendl;