Moving loadStudy logic from Hanging Protocols to StudyMetadataSource

This commit is contained in:
Eloízio Salgado committed 2017-03-02 10:18:10 -03:00
1 parent 4fe9a2f9fc
commit 3917e34a74
2 files changed
+6 -6

No files matched your search

@@ -417,9 +417,6 @@ HP.ProtocolEngine = class ProtocolEngine {
// Check if study metadata is already in studies list
if (this.studies.find(study => study.getStudyInstanceUID() === priorStudyInstanceUID)) {
// Update the viewport to refresh layout manager with new study
this.updateViewports();
return;
}
@@ -433,6 +430,9 @@ HP.ProtocolEngine = class ProtocolEngine {
// Re-match images
this.matchImages(viewport);
// Update the viewport to refresh layout manager with new study
this.updateViewports();
}, error => {
OHIF.log.warn(error);
throw new OHIFError(`ProtocolEngine::matchImages could not get study metadata for studyInstanceUID: ${priorStudyInstanceUID}`);