diff --git a/src/lib/project/Project.cpp b/src/lib/project/Project.cpp index ffd46f0c..59fb95dd 100644 --- a/src/lib/project/Project.cpp +++ b/src/lib/project/Project.cpp @@ -338,7 +338,7 @@ void Project::refresh(RefreshMode refreshMode, std::shared_ptr dialo m_sourceGroups = SourceGroupFactory::getInstance()->createSourceGroups(m_settings->getAllSourceGroupSettings()); for (const std::shared_ptr& sourceGroup : m_sourceGroups) { - if (!sourceGroup->prepareIndexing()) + if (sourceGroup->getStatus() == SOURCE_GROUP_STATUS_ENABLED && !sourceGroup->prepareIndexing()) { m_refreshStage = RefreshStageType::NONE; return;