From 945b4a63b80e1d5e07a9a0e0cb245a9fb495d25f Mon Sep 17 00:00:00 2001 From: akl Date: Tue, 23 Sep 2014 15:21:20 +0400 Subject: [PATCH] Ignore message from DS when study is closed from GUI. --- src/SalomeApp/SalomeApp_Application.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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.*/ -- 2.39.2