From f238ad7d3a5e068bf3bdc9a9c3b7cd2385dea08e Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 24 Jun 2015 18:58:18 +0300 Subject: [PATCH] From NewGEOM: activation of SMESH after any module without object browser crashes application --- src/LightApp/LightApp_Application.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 4064fb3d2..7126ffbc6 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -512,8 +512,9 @@ bool LightApp_Application::activateModule( const QString& modName ) updateWindows(); updateViewManagers(); - if ( activeStudy() && activeStudy()->root() && objectBrowser() && objectBrowser()->root() != activeStudy()->root() ) { - objectBrowser()->setRoot( activeStudy()->root() ); + if ( activeStudy() && activeStudy()->root() && objectBrowser() ) { + if ( objectBrowser()->root() != activeStudy()->root() ) + objectBrowser()->setRoot( activeStudy()->root() ); updateObjectBrowser( true ); } return true; -- 2.39.2