#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;
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();
}
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();
}