Salome HOME
Update Help for VISU module.
[modules/visu.git] / src / VISU_I / VISU_ViewManager_i.cc
index 4c6c97e06d45de956e9b5243c267cdbea97ca233..670656c113ab52ab78744550d10481dd711906b6 100644 (file)
@@ -46,7 +46,7 @@
 
 #include "SalomeApp_Study.h"
 #include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 
 #include "SALOME_Event.hxx"
 #include "SALOME_ListIO.hxx"
@@ -56,6 +56,8 @@
 #include <vtkRenderer.h>
 #include <vtkRenderWindow.h>
 
+#include <qapplication.h>
+
 using namespace std;
 
 #ifdef _DEBUG_
@@ -177,8 +179,10 @@ namespace VISU {
       //if (CheckStudy(myStudyDocument)) {
       if (myApplication) {
        TViewFrame* pView = new TViewFrame (myApplication);
-       if (pView->Create(1))
+       if (pView->Create(1)) {
          myResult = pView->_this();
+         qApp->processEvents(); // Fix for bug 9929
+       }
       }
     }
   };
@@ -503,7 +507,7 @@ namespace VISU {
       SALOMEDS::SObject_var aSObject = myPrs->GetSObject();
       CORBA::String_var anEntry = aSObject->GetID();
 
-      SalomeApp_SelectionMgr* aSelectionMgr = anApp->selectionMgr();
+      LightApp_SelectionMgr* aSelectionMgr = anApp->selectionMgr();
       SALOME_ListIO aListIO, aNewListIO;
       aSelectionMgr->selectedObjects(aListIO);
 
@@ -581,7 +585,7 @@ namespace VISU {
     SALOMEDS::SObject_var aSObject = thePrs->GetSObject();
     CORBA::String_var anEntry = aSObject->GetID();
 
-    SalomeApp_SelectionMgr* aSelectionMgr = anApp->selectionMgr();
+    LightApp_SelectionMgr* aSelectionMgr = anApp->selectionMgr();
     SALOME_ListIO aListIO, aNewListIO;
     aSelectionMgr->selectedObjects(aListIO);
 
@@ -657,7 +661,7 @@ namespace VISU {
     SALOMEDS::SObject_var aSObject = thePrs->GetSObject();
     CORBA::String_var anEntry = aSObject->GetID();
 
-    SalomeApp_SelectionMgr* aSelectionMgr = anApp->selectionMgr();
+    LightApp_SelectionMgr* aSelectionMgr = anApp->selectionMgr();
     SALOME_ListIO aListIO, aNewListIO;
     aSelectionMgr->selectedObjects(aListIO);