Salome HOME
Issue #3120: Show Empty panel if selection doesn't contain a shape
[modules/shaper.git] / src / XGUI / XGUI_ModuleConnector.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);
   }
 }