]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
IPAL9409: information of the selected via ID nodes(cells) doesn't appear in the ...
authorjfa <jfa@opencascade.com>
Fri, 22 Jul 2005 09:05:30 +0000 (09:05 +0000)
committerjfa <jfa@opencascade.com>
Fri, 22 Jul 2005 09:05:30 +0000 (09:05 +0000)
src/VISUGUI/VisuGUI_Selection.cxx

index 5bd77a643e0332245813d36afbbf918719c31989..0980900e26216f8dffcc18b2a7be9f0d45d5e3f7 100644 (file)
@@ -328,15 +328,17 @@ template<class TData> QString getVector(TData* theData, int theId){
 #define ABS(a) (a>=0)?a:-a
 
 void VisuGUI_SelectionDlg::onSelectionEvent() {
+  SVTK_ViewWindow* aSVTKVW = VISU::GetViewWindow();
+  if (!aSVTKVW) return;
+
   if (myFl) return;
   myFl = true;
+
   int aType = myWidgetStack->id(myWidgetStack->visibleWidget());
 
   SalomeApp_Application* anApp = dynamic_cast<SalomeApp_Application*>
     (SUIT_Session::session()->activeApplication());
 
-  SVTK_ViewWindow* aSVTKVW = VISU::GetViewWindow();
-  if (!aSVTKVW) return;
   SVTK_Selector* aSelector = aSVTKVW->GetSelector();
 
   VISU::Prs3d_i* aPrs3d = NULL;
@@ -577,7 +579,10 @@ void VisuGUI_SelectionDlg::onPointIdEdit (const QString& theText)
   bool anIsSelected = onIdEdit(theText,aMethod,false,mySelectionMgr,
                               myMeshName,tr("WRN_NO_AVAILABLE_DATA"),
                               myFieldName);
-  if (!anIsSelected)
+  if (anIsSelected)
+    // as selection manager doesn't send signal currentSelectionChanged()
+    onSelectionEvent();
+  else
     clearFields();
 }
 
@@ -588,6 +593,9 @@ void VisuGUI_SelectionDlg::onCellIdEdit (const QString& theText)
   bool anIsSelected = onIdEdit(theText,aMethod,true,mySelectionMgr,
                               myMeshName,tr("WRN_NO_AVAILABLE_DATA"),
                               myFieldName);
-  if (!anIsSelected)
+  if (anIsSelected)
+    // as selection manager doesn't send signal currentSelectionChanged()
+    onSelectionEvent();
+  else
     clearFields();
 }