Show only paste command if selection contains multiple objects

This commit is contained in:
Magne Sjaastad committed 2015-08-14 12:08:56 +02:00
1 parent 50ea7a0808
commit 6a28ea2070
1 file changed
+5 -1
@@ -542,7 +542,11 @@ void RimProject::actionsBasedOnSelection(std::vector<QAction*>& actions)
std::vector<caf::PdmUiItem*> uiItems;
caf::SelectionManager::instance()->selectedItems(uiItems);
if (uiItems.size() == 1)
if (uiItems.size() > 1)
{
commandIds << "RicCopyReferencesToClipboardFeature";
}
else if (uiItems.size() == 1)
{
caf::PdmUiItem* uiItem = uiItems[0];
CVF_ASSERT(uiItem);