From 3100143afd9edd5278eb5ca3d6a3d8e94fe795d7 Mon Sep 17 00:00:00 2001 From: akl Date: Wed, 24 Sep 2014 16:38:10 +0400 Subject: [PATCH] Disconnect study by signal from DS instead of closing study. --- src/SalomeApp/SalomeApp_Application.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index 3698cff6b..62ebe07bb 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -572,11 +572,12 @@ bool SalomeApp_Application::onLoadDoc( const QString& aName ) return res; } -/*!SLOT. Load document with a name, specified in \a aMessage.*/ +/*!SLOT. Parse message for desktop.*/ void SalomeApp_Application::onParseMessage(const QString& aMessage) { if (aMessage.indexOf("simanCheckoutDone ") == 0) { #ifdef WITH_SIMANIO + // Load document with a name, specified in aMessage. onLoadDoc(aMessage.section(' ', 1)); #else printf( "****************************************************************\n" ); @@ -584,7 +585,12 @@ void SalomeApp_Application::onParseMessage(const QString& aMessage) printf( "****************************************************************\n" ); #endif } else if (aMessage.indexOf("studyClosed:") == 0) { - onCloseDoc( false ); + /* aMessage also contains ID of the closed study, + but as soon as SALOME is mono-study application for the moment, + this ID is not needed now.*/ + //long aStudyId = aMessage.section(':', 1).toLong(); + // Disconnect GUI from active study, because it was closed on DS side. + closeActiveDoc( false ); } } -- 2.39.2