Mercurial > hg > orthanc-stone
diff Applications/IBasicApplication.cpp @ 81:8677d95753f8 wasm
switching to Oracle in SDL samples
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 24 May 2017 22:54:09 +0200 |
parents | 1553b67b24e5 |
children | cee8f308a4bc |
line wrap: on
line diff
--- a/Applications/IBasicApplication.cpp Wed May 24 22:33:20 2017 +0200 +++ b/Applications/IBasicApplication.cpp Wed May 24 22:54:09 2017 +0200 @@ -197,12 +197,15 @@ } LOG(WARNING) << "URL to the Orthanc REST API: " << webService.GetUrl(); - OrthancSynchronousWebService orthanc(webService); + + { + OrthancSynchronousWebService orthanc(webService); - if (!MessagingToolbox::CheckOrthancVersion(orthanc.GetConnection())) - { - LOG(ERROR) << "Your version of Orthanc is incompatible with Orthanc Stone, please upgrade"; - throw Orthanc::OrthancException(Orthanc::ErrorCode_NetworkProtocol); + if (!MessagingToolbox::CheckOrthancVersion(orthanc.GetConnection())) + { + LOG(ERROR) << "Your version of Orthanc is incompatible with Orthanc Stone, please upgrade"; + throw Orthanc::OrthancException(Orthanc::ErrorCode_NetworkProtocol); + } } @@ -213,7 +216,7 @@ LOG(WARNING) << "Creating the widgets of the application"; LogStatusBar statusBar; - BasicApplicationContext context(orthanc); + BasicApplicationContext context(webService); application.Initialize(context, statusBar, parameters);