#1597 Remove "New Well Log Plot" and "New Summary Plot" from context menu when no items are selected in project tree

This commit is contained in:
Bjørnar Grip Fjær 2017-06-16 15:46:22 +02:00
parent d5d7625864
commit 54bcbe570d

View File

@ -86,12 +86,7 @@ QStringList RimContextCommandBuilder::commandsFromSelection()
std::vector<caf::PdmUiItem*> uiItems;
caf::SelectionManager::instance()->selectedItems(uiItems);
if (uiItems.size() == 0)
{
commandIds << "RicNewWellLogPlotFeature";
commandIds << "RicNewSummaryPlotFeature";
}
else if (uiItems.size() == 1)
if (uiItems.size() == 1)
{
caf::PdmUiItem* uiItem = uiItems[0];
CVF_ASSERT(uiItem);