# HG changeset patch # User Alain Mazy # Date 1688029936 -7200 # Node ID 1096d92febfc28263a79a04ec036ea0b1eeb1fc5 # Parent 70b79788c2f3c68912dc31e72de3fddba9cb67f5 Open the first loaded series only if it is part of a selected study diff -r 70b79788c2f3 -r 1096d92febfc Applications/StoneWebViewer/NEWS --- a/Applications/StoneWebViewer/NEWS Thu Mar 30 17:34:07 2023 +0200 +++ b/Applications/StoneWebViewer/NEWS Thu Jun 29 11:12:16 2023 +0200 @@ -7,6 +7,7 @@ ----------- * Prevent dragging series before they are ready +* Open the first loaded series only if it is part of a selected study. Version 2.5 (2022-12-05) diff -r 70b79788c2f3 -r 1096d92febfc Applications/StoneWebViewer/WebApplication/app.js --- a/Applications/StoneWebViewer/WebApplication/app.js Thu Mar 30 17:34:07 2023 +0200 +++ b/Applications/StoneWebViewer/WebApplication/app.js Thu Jun 29 11:12:16 2023 +0200 @@ -1400,8 +1400,8 @@ var seriesInstanceUid = args.detail.seriesInstanceUid; that.UpdateIsSeriesComplete(studyInstanceUid, seriesInstanceUid); - // Automatically open the first series to be loaded (new in Stone Web viewer 2.5) - if (that.isFirstSeries) { + // Automatically open the first selected series to be loaded (new in Stone Web viewer 2.5) + if (that.isFirstSeries && that.selectedStudies.includes(studyInstanceUid)) { that.SetViewportSeriesInstanceUid(1, seriesInstanceUid); that.isFirstSeries = false; }