# HG changeset patch # User Sebastien Jodogne # Date 1729704476 -7200 # Node ID 4d21befb15019fb721f7cf98422ead2f6fadba8b # Parent c5f94c10cd6192feedfbbdb40af7bac64ccd9572 clarify DICOMweb version check diff -r c5f94c10cd61 -r 4d21befb1501 Applications/StoneWebViewer/Plugin/Plugin.cpp --- a/Applications/StoneWebViewer/Plugin/Plugin.cpp Tue Oct 22 21:59:25 2024 +0200 +++ b/Applications/StoneWebViewer/Plugin/Plugin.cpp Wed Oct 23 19:27:56 2024 +0200 @@ -28,6 +28,8 @@ #include #include +#include + static const std::string STONE_WEB_VIEWER_ROOT = "/stone-webviewer"; // (*) static const char* CONFIG_SECTION = "StoneWebViewer"; @@ -61,7 +63,8 @@ } std::string version = info["Version"].asString(); - if (version.find("mainline") != 0) + if (version == "mainline" || + boost::starts_with(version, "mainline-")) // Allow DICOMweb versions such as "mainline-commitId" { std::vector tokens; Orthanc::Toolbox::TokenizeString(tokens, version, '.');