]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #3091: Enable DOF objects for selection list.
authorvsv <vsv@opencascade.com>
Wed, 27 Nov 2019 08:36:07 +0000 (11:36 +0300)
committervsv <vsv@opencascade.com>
Wed, 27 Nov 2019 08:36:07 +0000 (11:36 +0300)
src/XGUI/XGUI_ModuleConnector.cpp
src/XGUI/XGUI_OperationMgr.cpp
src/XGUI/XGUI_Workshop.cpp

index 36866a91eda927474d490538e3d4e00d5d9bebdc..b0ee40950c0511083162f829f87ded6aa77b1d55 100644 (file)
@@ -130,13 +130,7 @@ void XGUI_ModuleConnector::setSelected(const QList<ModuleBase_ViewerPrsPtr>& the
     myWorkshop->selector()->clearSelection();
     aBrowser->treeView()->clearSelection();
   } else {
-    aDisp->setSelected(theValues);
-    // Synchronise the selection with Object browser
-    QObjectPtrList anObjects;
-    foreach(ModuleBase_ViewerPrsPtr aVal, theValues) {
-      anObjects.append(aVal->object());
-    }
-    aBrowser->setObjectsSelected(anObjects);
+    myWorkshop->selector()->setSelected(theValues);
   }
 }
 
index b8857fecfe6ab87fc9f6abd40c19efa177afd71f..68c1b535de7750db8d196df5116e098b665930aa 100644 (file)
@@ -843,7 +843,7 @@ bool XGUI_OperationMgr::onProcessDelete(QObject* theObject)
     /// processing delete by workshop
     XGUI_ObjectsBrowser* aBrowser = XGUI_Tools::workshop(myWorkshop)->objectBrowser();
     QWidget* aViewPort = myWorkshop->viewer()->activeViewPort();
-    bool isToDeleteObject = false;
+    bool isToDeleteObject = true;
     XGUI_Workshop* aWorkshop = XGUI_Tools::workshop(myWorkshop);
     XGUI_ContextMenuMgr* aContextMenuMgr = aWorkshop->contextMenuMgr();
     if (theObject == aBrowser->treeView()) {
index 4d2f003b1f07c4e339be6e0ded00f2eea62a48d6..d42b7e24711dbf2bff891cc65a6f0f855c80abe3 100644 (file)
@@ -1861,6 +1861,7 @@ void XGUI_Workshop::deleteObjects()
   // allow the module to delete objects, do nothing if it has succeed
   if (aModule->deleteObjects()) {
     updateCommandStatus();
+    myDisplayer->updateViewer();
     return;
   }