From ce54f7278e953aa5553b0fe465abeffc04222018 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 27 Sep 2017 16:40:19 +0300 Subject: [PATCH] Fix crash when implicitly activate "light" module --- src/LightApp/LightApp_DataModel.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LightApp/LightApp_DataModel.cxx b/src/LightApp/LightApp_DataModel.cxx index ccef46ec0..88a29bdb1 100644 --- a/src/LightApp/LightApp_DataModel.cxx +++ b/src/LightApp/LightApp_DataModel.cxx @@ -110,7 +110,7 @@ void LightApp_DataModel::build() void LightApp_DataModel::updateWidgets() { LightApp_Application* app = dynamic_cast( module()->application() ); - if ( app ) + if ( app && app->objectBrowser() ) app->objectBrowser()->updateTree( 0, false ); } -- 2.39.2