mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Show only paste command if selection contains multiple objects
This commit is contained in:
parent
50ea7a0808
commit
6a28ea2070
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user