#1293 Added "Show Plot Data" to context menu of plots

This commit is contained in:
Magne Sjaastad
2017-03-16 08:23:27 +01:00
parent 19e988925a
commit 141257c83e
6 changed files with 638 additions and 601 deletions

View File

@@ -42,14 +42,11 @@ bool RicShowPlotDataFeature::isCommandEnabled()
{
std::vector<RimSummaryPlot*> selectedSummaryPlots;
caf::SelectionManager::instance()->objectsByType(&selectedSummaryPlots);
if (selectedSummaryPlots.size() > 0) return true;
std::vector<RimWellLogPlot*> wellLogPlots;
caf::SelectionManager::instance()->objectsByType(&wellLogPlots);
if (selectedSummaryPlots.size() > 0 || wellLogPlots.size() > 0)
{
return true;
}
if (wellLogPlots.size() > 0) return true;
return false;
}