]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
added show() of view window after creation.
authorasv <asv@opencascade.com>
Tue, 7 Feb 2006 08:22:49 +0000 (08:22 +0000)
committerasv <asv@opencascade.com>
Tue, 7 Feb 2006 08:22:49 +0000 (08:22 +0000)
src/SalomeApp/SalomeApp_Study.cxx

index f143be745acebc4c9512e2c21f87108741608021..9e07bf9565259e9c8b48a38448d8af9448c37ca6 100644 (file)
@@ -801,9 +801,13 @@ void SalomeApp_Study::restoreState(int savePoint)
     
     
     int nbViews = (ip.nbValues(viewerEntry))/2;
-    //Create nbViews-1 view (-1 because 1 view is created by createViewManager)
-    for(int i = 1; i< nbViews; i++)  vm->createViewWindow();
     
+    //Create nbViews-1 view (-1 because 1 view is created by createViewManager)
+    for ( int i = 1; i< nbViews; i++ ) { 
+      SUIT_ViewWindow* aView = vm->createViewWindow();
+      aView->show();
+    }
+
     int viewCount = vm->getViewsCount();
     if(viewCount != nbViews) {
       cout << "Unknow error, Can't create a view!" << endl;