]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
debug on read mesh when the VTKViewer is embedded in a light application
authorPaul RASCLE <paul.rascle@edf.fr>
Tue, 24 Jan 2017 17:13:52 +0000 (18:13 +0100)
committerPaul RASCLE <paul.rascle@edf.fr>
Tue, 24 Jan 2017 17:13:52 +0000 (18:13 +0100)
src/SalomeApp/SalomeApp_Study.cxx

index 0bd5244e30c6ce36d20f903269e12af788cb38c3..a2945767595108f65f89019254bbba9cdb74bfcb 100644 (file)
@@ -161,6 +161,12 @@ public:
             if (oldFather) {
               oldFather->removeChild(suit_obj, false);
               SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>( 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<SUIT_AbstractModel*>(app->objectBrowser()->model());
               model->forgetObject( suit_obj );