logic: skip pre-indexing steps of disabled source groups (issue #737)

This commit is contained in:
mlangkabel
2019-10-18 13:05:29 +02:00
committed by Eberhard Graether
parent f572e5ee05
commit f7262c805f
+1 -1
View File
@@ -338,7 +338,7 @@ void Project::refresh(RefreshMode refreshMode, std::shared_ptr<DialogView> dialo
m_sourceGroups = SourceGroupFactory::getInstance()->createSourceGroups(m_settings->getAllSourceGroupSettings());
for (const std::shared_ptr<SourceGroup>& sourceGroup : m_sourceGroups)
{
if (!sourceGroup->prepareIndexing())
if (sourceGroup->getStatus() == SOURCE_GROUP_STATUS_ENABLED && !sourceGroup->prepareIndexing())
{
m_refreshStage = RefreshStageType::NONE;
return;