|
@@ -91,7 +91,7 @@ bool ctkDicomObjectLocatorCache::isCached(const ctkDicomAppHosting::AvailableDat
|
|
|
// Loop over top level object descriptors
|
|
|
foreach(const ctkDicomAppHosting::ObjectDescriptor& objectDescriptor, availableData.objectDescriptors)
|
|
|
{
|
|
|
- if (!hasCachedData) { hasCachedData = true; }
|
|
|
+ hasCachedData = true;
|
|
|
if (!uuids.contains(objectDescriptor.descriptorUUID))
|
|
|
{
|
|
|
return false;
|
|
@@ -103,7 +103,7 @@ bool ctkDicomObjectLocatorCache::isCached(const ctkDicomAppHosting::AvailableDat
|
|
|
// Loop over patient level object descriptors
|
|
|
foreach(const ctkDicomAppHosting::ObjectDescriptor& objectDescriptor, patient.objectDescriptors)
|
|
|
{
|
|
|
- if (!hasCachedData) { hasCachedData = true; }
|
|
|
+ hasCachedData = true;
|
|
|
if (!uuids.contains(objectDescriptor.descriptorUUID))
|
|
|
{
|
|
|
return false;
|
|
@@ -115,6 +115,7 @@ bool ctkDicomObjectLocatorCache::isCached(const ctkDicomAppHosting::AvailableDat
|
|
|
// Loop over study level object descriptors
|
|
|
foreach(const ctkDicomAppHosting::ObjectDescriptor& objectDescriptor, study.objectDescriptors)
|
|
|
{
|
|
|
+ hasCachedData = true;
|
|
|
if (!uuids.contains(objectDescriptor.descriptorUUID))
|
|
|
{
|
|
|
return false;
|
|
@@ -126,6 +127,7 @@ bool ctkDicomObjectLocatorCache::isCached(const ctkDicomAppHosting::AvailableDat
|
|
|
// Loop over series level object descriptors
|
|
|
foreach(const ctkDicomAppHosting::ObjectDescriptor& objectDescriptor, series.objectDescriptors)
|
|
|
{
|
|
|
+ hasCachedData = true;
|
|
|
if (!uuids.contains(objectDescriptor.descriptorUUID))
|
|
|
{
|
|
|
return false;
|