summaryrefslogtreecommitdiff
path: root/core/launcher/documentlist.cpp
Side-by-side diff
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()