]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix for the Bug IPAL22041 TC5.1.5: "Fillet Construcion" dialog loses current selection.
authorrnv <rnv@opencascade.com>
Mon, 18 Oct 2010 09:05:02 +0000 (09:05 +0000)
committerrnv <rnv@opencascade.com>
Mon, 18 Oct 2010 09:05:02 +0000 (09:05 +0000)
src/OperationGUI/OperationGUI_ChamferDlg.cxx
src/OperationGUI/OperationGUI_FilletDlg.cxx

index a10babc449274f88ab2aff1975a299b32adeed64..71a6e290c634b823686d7af3b2bc53c4c961a56f 100644 (file)
@@ -526,6 +526,19 @@ void OperationGUI_ChamferDlg::SelectionIntoArgument()
   default:
     break;
   }
+
+  //rnv: To fix the bug IPAL22041 TC5.1.5: "Fillet Construcion" dialog loses current selection.
+  // Restore selection of the main shape, if need,
+  // because it was canceled.
+  aSelMgr->selectedObjects(aSelList);
+  if (aSelList.Extent() == 0 && !myShape->_is_nil()) {
+    disconnect(myGeomGUI->getApp()->selectionMgr(), 0, this, 0);
+    ObjectList list;
+       list.push_back(myShape);
+    selectObjects(list);
+    connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
+            this, SLOT(SelectionIntoArgument()));
+  }
 }
 
 //=================================================================================
index 85ac40d6e553ba5b2dc31e2f63371eac8bc32487..e18e1cb4c0466facc01b2dc689dd0fe7f3fce3b3 100644 (file)
@@ -422,6 +422,19 @@ void OperationGUI_FilletDlg::SelectionIntoArgument()
   default:
     break;
   }
+
+  //rnv: To fix the bug IPAL22041 TC5.1.5: "Fillet Construcion" dialog loses current selection.
+  // Restore selection of the main shape, if need,
+  // because it was canceled.
+  aSelMgr->selectedObjects(aSelList);
+  if (aSelList.Extent() == 0 && !myShape->_is_nil()) {
+    disconnect(myGeomGUI->getApp()->selectionMgr(), 0, this, 0);
+    ObjectList list;
+       list.push_back(myShape);
+    selectObjects(list);
+    connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
+            this, SLOT(SelectionIntoArgument()));
+  }
 }
 
 //=================================================================================