logic: Fixed loading of outversioned projects fails

This commit is contained in:
Eberhard Graether
2018-04-20 10:05:35 +02:00
parent e9877acf80
commit e5280f99ca
+1 -7
View File
@@ -326,7 +326,7 @@ RefreshInfo Project::getRefreshInfo(RefreshMode mode) const
void Project::buildIndex(const RefreshInfo& info, DialogView* dialogView)
{
if (info.mode == REFRESH_NONE || (info.filesToClear.empty() && info.filesToIndex.empty()))
if (info.mode != REFRESH_ALL_FILES && info.filesToClear.empty() && info.filesToIndex.empty())
{
if (m_hasGUI)
{
@@ -660,12 +660,6 @@ RefreshInfo Project::getRefreshInfoForAllFiles() const
RefreshInfo info;
info.mode = REFRESH_ALL_FILES;
info.filesToIndex = getAllSourceFilePaths();
{
for (const FileInfo& fileInfo : m_storage->getFileInfoForAllFiles())
{
info.filesToClear.insert(fileInfo.path);
}
}
return info;
}