From: Paul RASCLE Date: Tue, 24 Jan 2017 17:13:52 +0000 (+0100) Subject: debug on read mesh when the VTKViewer is embedded in a light application X-Git-Tag: SHAPER_2.7.0~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=15486340c6eb3e1378abbf1949fd2c318596126d;p=modules%2Fgui.git debug on read mesh when the VTKViewer is embedded in a light application --- diff --git a/src/SalomeApp/SalomeApp_Study.cxx b/src/SalomeApp/SalomeApp_Study.cxx index 0bd5244e3..a29457675 100644 --- a/src/SalomeApp/SalomeApp_Study.cxx +++ b/src/SalomeApp/SalomeApp_Study.cxx @@ -161,6 +161,12 @@ public: if (oldFather) { oldFather->removeChild(suit_obj, false); SalomeApp_Application* app = dynamic_cast( myStudy->application() ); +// MESSAGE("myStudy: " << myStudy->id() << " app " << app); +// MESSAGE("objectBrowser: "<< app->objectBrowser()); + if (!app->objectBrowser()) { + MESSAGE("Object Browser not found. Problem ??"); + return; + } SUIT_AbstractModel* model = dynamic_cast(app->objectBrowser()->model()); model->forgetObject( suit_obj );