diff options
Diffstat (limited to 'view/sharedcache/core/SharedCacheBuilder.cpp')
| -rw-r--r-- | view/sharedcache/core/SharedCacheBuilder.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/view/sharedcache/core/SharedCacheBuilder.cpp b/view/sharedcache/core/SharedCacheBuilder.cpp index 5c3ea0d8..ac2990fa 100644 --- a/view/sharedcache/core/SharedCacheBuilder.cpp +++ b/view/sharedcache/core/SharedCacheBuilder.cpp @@ -83,9 +83,8 @@ size_t SharedCacheBuilder::AddProjectFolder(Ref<ProjectFolder> folder) const auto currentFileName = file.GetName(); // Skip files not in the folder. - if (const auto currentFolder = file.GetFolder(); folder) - if (currentFolder->GetId() != folder->GetId()) - return false; + if (!IsSameFolder(file.GetFolder(), folder)) + return false; // Ok, we are now _sure_ that this file _might_ be a part of the cache, lets try and process it! return AddFile(currentFilePath, currentFileName, CacheEntryType::Secondary); |
