mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
myViewWindow( SMESH::GetViewWindow( theModule ) ),
mySelector( myViewWindow->GetSelector() ),
- myIsBusy( false )
+ myIsBusy( false ),
+ myActor( 0 )
{
if (!name) setName("SMESHGUI_GroupDlg");
initDialog(true);
myCreate = create;
myCurrentLineEdit = 0;
- QPixmap image0 (SMESHGUI::resourceMgr()->loadPixmap("SMESH", tr("ICON_SELECT")));
+ QPixmap image0 (SMESH::GetResourceMgr( mySMESHGUI )->loadPixmap("SMESH", tr("ICON_SELECT")));
if (create)
setCaption(tr("SMESH_CREATE_GROUP_TITLE"));
myElements->clear();
- if (aNbSel == 0 ) {
+ if (aNbSel != 1 ) {
myGroup = SMESH::SMESH_Group::_nil();
myMesh = SMESH::SMESH_Mesh::_nil();
myIsBusy = false;
return;
} else if (myCurrentLineEdit == myGeomGroupLine) {
- if (aNbSel == 0) {
+ if (aNbSel != 1) {
myGeomGroup = GEOM::GEOM_Object::_nil();
myIsBusy = false;
return;
updateButtons();
} else {
- if (aNbSel == 1) {
+ if (aNbSel == 1 && myActor ) {
QString aListStr = "";
int aNbItems = 0;
if (myTypeId == 0) {