}
}
- bool isBlocked = desktop()->signalsBlocked();
- desktop()->blockSignals( true );
LightApp_Application::onCloseDoc( ask );
- desktop()->blockSignals( isBlocked );
}
/*!Sets enable or disable some actions on selection changed.*/
if ( myObserver )
myStudyDS->detach( myObserver->_this() );
if ( permanently ) {
+ SUIT_Desktop* desk = SUIT_Session::session()->activeApplication()->desktop();
+ bool isBlocked = desk->signalsBlocked();
+ desk->blockSignals( true );
SalomeApp_Application::studyMgr()->Close( studyPtr );
+ desk->blockSignals( isBlocked );
#ifndef DISABLE_PYCONSOLE
SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>( application() );
if( app->pythonConsole() )