]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Exclude Rename item in pop-up of object browser in multi-selection
authorvsv <vitaly.smetannikov@opencascade.com>
Mon, 29 Sep 2014 14:06:19 +0000 (18:06 +0400)
committervsv <vitaly.smetannikov@opencascade.com>
Mon, 29 Sep 2014 14:06:19 +0000 (18:06 +0400)
src/XGUI/XGUI_ObjectsBrowser.cpp

index 4242f4dbeb05e095c4ad5f4d53742777e20fb572..4268115fde4477d1bbe52412c4d440a4ca291c04 100644 (file)
@@ -260,7 +260,7 @@ void XGUI_ObjectsBrowser::activatePart(const ResultPartPtr& thePart)
 void XGUI_ObjectsBrowser::onContextMenuRequested(QContextMenuEvent* theEvent)
 {
   myObjectsList = myTreeView->selectedObjects();
-  bool toEnable = myObjectsList.size() > 0;
+  bool toEnable = myObjectsList.size() == 1;
   foreach(QAction* aCmd, actions())
   {
     aCmd->setEnabled(toEnable);