From e0a4dc322ca6e0f6540b92c399c7cc20443d08dc Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Fri, 20 Jul 2012 09:29:25 +0200 Subject: [PATCH] changed the order of the filesystem scans --- src/board/UBFeaturesController.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/board/UBFeaturesController.cpp b/src/board/UBFeaturesController.cpp index de3631f0..7eb3ceed 100644 --- a/src/board/UBFeaturesController.cpp +++ b/src/board/UBFeaturesController.cpp @@ -126,6 +126,13 @@ void UBFeaturesController::initDirectoryTree() featuresList->append( UBFeature( favoritePath, tool.icon, tool.label, QUrl( tool.id ), FEATURE_INTERNAL ) ); } } + // Claudio: + // don't change the order of the scans + fileSystemScan( mLibAudiosDirectoryPath, audiosPath); + fileSystemScan( mLibVideosDirectoryPath, moviesPath); + fileSystemScan( mLibAnimationsDirectoryPath, flashPath); + fileSystemScan( mLibPicturesDirectoryPath, picturesPath ); + fileSystemScan( mUserInteractiveDirectoryPath, appPath ); fileSystemScan( mUserAudioDirectoryPath, audiosPath ); fileSystemScan( mUserPicturesDirectoryPath, picturesPath ); @@ -133,15 +140,12 @@ void UBFeaturesController::initDirectoryTree() fileSystemScan( mUserAnimationDirectoryPath, flashPath ); fileSystemScan( mLibApplicationsDirectoryPath, appPath ); - fileSystemScan( mLibPicturesDirectoryPath, picturesPath ); fileSystemScan( mLibShapesDirectoryPath, shapesPath ); fileSystemScan( mLibInteractiveDirectoryPath, interactPath ); fileSystemScan( trashDirectoryPath, trashPath ); fileSystemScan( mLibSearchDirectoryPath, rootPath + "/" + "Web search" ); - fileSystemScan( mLibAudiosDirectoryPath, audiosPath); - fileSystemScan( mLibVideosDirectoryPath, moviesPath); - fileSystemScan( mLibAnimationsDirectoryPath, flashPath); + } void UBFeaturesController::fileSystemScan(const QUrl & currentPath, const QString & currVirtualPath)