From: akl Date: Tue, 23 Sep 2014 11:21:20 +0000 (+0400) Subject: Ignore message from DS when study is closed from GUI. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=945b4a63b80e1d5e07a9a0e0cb245a9fb495d25f;p=modules%2Fgui.git Ignore message from DS when study is closed from GUI. --- diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index 69aa10eb2..3698cff6b 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -672,8 +672,10 @@ void SalomeApp_Application::onCloseDoc( bool ask ) } } - + bool isBlocked = desktop()->signalsBlocked(); + desktop()->blockSignals( true ); LightApp_Application::onCloseDoc( ask ); + desktop()->blockSignals( isBlocked ); } /*!Sets enable or disable some actions on selection changed.*/