Salome HOME
IPAL9200
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_GroupDlg.cxx
index 2a86d827468eab72b721d81310a63304e02a56c5..25ecdabccecc76348254f05c5c62cf497ee74a9a 100644 (file)
@@ -91,7 +91,8 @@ SMESHGUI_GroupDlg::SMESHGUI_GroupDlg( SMESHGUI* theModule, const char* name,
      mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
      myViewWindow( SMESH::GetViewWindow( theModule ) ),
      mySelector( myViewWindow->GetSelector() ),
      mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
      myViewWindow( SMESH::GetViewWindow( theModule ) ),
      mySelector( myViewWindow->GetSelector() ),
-     myIsBusy( false )
+     myIsBusy( false ),
+     myActor( 0 )
 {
   if (!name) setName("SMESHGUI_GroupDlg");
   initDialog(true);
 {
   if (!name) setName("SMESHGUI_GroupDlg");
   initDialog(true);
@@ -885,7 +886,7 @@ void SMESHGUI_GroupDlg::onObjectSelectionChanged()
     updateButtons();
 
   } else {
     updateButtons();
 
   } else {
-    if (aNbSel == 1) {
+    if (aNbSel == 1 && myActor ) {
       QString aListStr = "";
       int aNbItems = 0;
       if (myTypeId == 0) {
       QString aListStr = "";
       int aNbItems = 0;
       if (myTypeId == 0) {