From d4892ec848377ef674ff89939ce0d851791ea014 Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Mon, 10 Jun 2013 10:06:54 +0200 Subject: [PATCH] added if to avoid error until the decisons about examples --- src/board/UBFeaturesController.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/board/UBFeaturesController.cpp b/src/board/UBFeaturesController.cpp index fe44b8c1..3729187e 100644 --- a/src/board/UBFeaturesController.cpp +++ b/src/board/UBFeaturesController.cpp @@ -59,6 +59,8 @@ const QString UBFeaturesController::webSearchPath = rootPath + "/Web search"; void UBFeaturesComputingThread::scanFS(const QUrl & currentPath, const QString & currVirtualPath, const QSet &pFavoriteSet) { Q_ASSERT(QFileInfo(currentPath.toLocalFile()).exists()); + if(QFileInfo(currentPath.toLocalFile()).exists()) + return; QFileInfoList fileInfoList = UBFileSystemUtils::allElementsInDirectory(currentPath.toLocalFile());