diff --git a/SampleViewer/SampleManager.cpp b/SampleViewer/SampleManager.cpp index 2685c326f7..9d1a0878b2 100644 --- a/SampleViewer/SampleManager.cpp +++ b/SampleViewer/SampleManager.cpp @@ -416,12 +416,12 @@ bool SampleManager::dataItemsExists() for (auto dataItem : *currentSample()->dataItems()) { - if (dataItem->exists()) + if (!dataItem->exists()) { - return true; + return false; } } - return false; + return true; } void SampleManager::downloadAllDataItems()