]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
IPAL9324: update Object Browser after Explore MED file; IPAL9374: provide Sweep in...
authorjfa <jfa@opencascade.com>
Fri, 22 Jul 2005 10:38:38 +0000 (10:38 +0000)
committerjfa <jfa@opencascade.com>
Fri, 22 Jul 2005 10:38:38 +0000 (10:38 +0000)
src/VISUGUI/VisuGUI.cxx

index ced02edf286d7ad476290cd8de1e3e8be76be6a1..1fe31836a1ab58b2d00568d25dba434c67d9c4d4 100644 (file)
@@ -231,7 +231,8 @@ OnExploreMEDFile()
     std::string aStudyName = aStudy->Name();
     aGen->readStructFileWithFieldType(aFileInfo.filePath(),aStudyName.c_str());
     application()->putInfo(aFileInfo.filePath()+tr("INF_DONE"));
-    updateObjBrowser();
+    //updateObjBrowser();
+    getApp()->updateObjectBrowser(true); // as need to update MED tree
   }
 }
 
@@ -2464,7 +2465,7 @@ createPopupMenus()
   aRule = "selcount=1 and type='VISU::TCUTLINES' and nbNamedChildren=0";
   mgr->setRule( action( VISU_CREATE_TABLE ), aRule, true );
 
-  aRule = "selcount=1 and type='VISU::TSCALARMAP'";
+  aRule = "selcount=1 and ($type in {" + aPrsAll + "})";
   mgr->setRule( action( VISU_SWEEP ), aRule, true );
 
   // Selection info popup item