From: vsv Date: Mon, 29 Sep 2014 14:06:19 +0000 (+0400) Subject: Exclude Rename item in pop-up of object browser in multi-selection X-Git-Tag: V_0.4.4~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=70968a44baa232a0791fc092f38555fef63a7295;p=modules%2Fshaper.git Exclude Rename item in pop-up of object browser in multi-selection --- diff --git a/src/XGUI/XGUI_ObjectsBrowser.cpp b/src/XGUI/XGUI_ObjectsBrowser.cpp index 4242f4dbe..4268115fd 100644 --- a/src/XGUI/XGUI_ObjectsBrowser.cpp +++ b/src/XGUI/XGUI_ObjectsBrowser.cpp @@ -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);