summaryrefslogtreecommitdiff
path: root/core/launcher/documentlist.cpp
authormickeyl <mickeyl>2003-11-20 01:31:27 (UTC)
committer mickeyl <mickeyl>2003-11-20 01:31:27 (UTC)
commitae9e1ed9cc9e65c1ffb28f3b75ff499e18c6b31a (patch) (side-by-side diff)
treeeb25cce124b37363bbd3b7b757d2c92dc94bee19 /core/launcher/documentlist.cpp
parentd8c2766507a807c72a350bf73c2908e4fa021262 (diff)
downloadopie-ae9e1ed9cc9e65c1ffb28f3b75ff499e18c6b31a.zip
opie-ae9e1ed9cc9e65c1ffb28f3b75ff499e18c6b31a.tar.gz
opie-ae9e1ed9cc9e65c1ffb28f3b75ff499e18c6b31a.tar.bz2
rework optional doc-tab patch to be less intrusive and more sane
Diffstat (limited to 'core/launcher/documentlist.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/documentlist.cpp22
1 files changed, 6 insertions, 16 deletions
diff --git a/core/launcher/documentlist.cpp b/core/launcher/documentlist.cpp
index dcea4b9..1a7de33 100644
--- a/core/launcher/documentlist.cpp
+++ b/core/launcher/documentlist.cpp
@@ -96,30 +96,20 @@ DocumentList::DocumentList( ServerInterface *serverGui, bool scanDocs,
{
appLnkSet = new AppLnkSet( MimeType::appsFolderName() );
d = new DocumentListPrivate( serverGui );
- d->scanDocs = scanDocs;
d->needToSendAllDocLinks = false;
+ Config cfg( "Launcher" );
+ cfg.setGroup( "DocTab" );
+ d->scanDocs = cfg.readBoolEntry( "Enable", true );
+ qDebug( "DocumentList::DocumentList() : scanDocs = %d", d->scanDocs );
+
QTimer::singleShot( 10, this, SLOT( startInitialScan() ) );
}
void DocumentList::startInitialScan()
{
reloadAppLnks();
-
- Config cfg( "Launcher" );
- cfg.setGroup( "DocTab" );
- bool docTabEnabled = cfg.readBoolEntry( "Enable", true );
- if ( docTabEnabled )
- reloadDocLnks();
- else
- {
- if ( d->sendDocLnks && d->serverGui )
- {
- d->serverGui->documentScanningProgress( 0 );
- d->serverGui->allDocumentsRemoved();
- }
- }
-
+ reloadDocLnks();
}
DocumentList::~DocumentList()