From: vsr Date: Wed, 24 Jun 2015 15:58:18 +0000 (+0300) Subject: From NewGEOM: activation of SMESH after any module without object browser crashes... X-Git-Tag: NewGEOM_1.4.0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FBR760-NEWGEOM-PATCHES;p=modules%2Fgui.git From NewGEOM: activation of SMESH after any module without object browser crashes application --- 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;